Fix confirmation dialog

By splitting the confirmation function into two halves, the closure was lost
This commit is contained in:
JeLuF 2023-05-24 19:29:54 +02:00
parent 3d7e16cfd9
commit 3ea74af76d
2 changed files with 2 additions and 4 deletions

View File

@ -264,7 +264,7 @@ function shiftOrConfirm(e, prompt, fn) {
confirm( confirm(
'<small>Tip: To skip this dialog, use shift-click or disable the "Confirm dangerous actions" setting in the Settings tab.</small>', '<small>Tip: To skip this dialog, use shift-click or disable the "Confirm dangerous actions" setting in the Settings tab.</small>',
prompt, prompt,
fn () => { fn(e) }
) )
} }
} }

View File

@ -918,9 +918,7 @@ function confirm(msg, title, fn) {
animateFromElement: false, animateFromElement: false,
content: msg, content: msg,
buttons: { buttons: {
yes: () => { yes: fn,
fn(e)
},
cancel: () => {}, cancel: () => {},
}, },
}) })