mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-23 14:50:54 +01:00
Fix confirmation dialog
By splitting the confirmation function into two halves, the closure was lost
This commit is contained in:
parent
3d7e16cfd9
commit
3ea74af76d
@ -264,7 +264,7 @@ function shiftOrConfirm(e, prompt, fn) {
|
||||
confirm(
|
||||
'<small>Tip: To skip this dialog, use shift-click or disable the "Confirm dangerous actions" setting in the Settings tab.</small>',
|
||||
prompt,
|
||||
fn
|
||||
() => { fn(e) }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -918,9 +918,7 @@ function confirm(msg, title, fn) {
|
||||
animateFromElement: false,
|
||||
content: msg,
|
||||
buttons: {
|
||||
yes: () => {
|
||||
fn(e)
|
||||
},
|
||||
yes: fn,
|
||||
cancel: () => {},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user