Correct fix for abort prompt

This commit is contained in:
byte[] 2021-12-26 09:57:59 -05:00
parent 7ebba8b368
commit 8da6cab713

View file

@ -42,11 +42,17 @@ function activate() {
function reset() {
if (window.confirm('Are you sure you want to abort batch tagging?')) {
store.remove(currentTagStorage);
store.remove(imageQueueStorage);
toggleActiveState();
}
function promptReset() {
if (window.confirm('Are you sure you want to abort batch tagging?')) {
reset();
}
}
@ -96,7 +102,7 @@ function clickHandler(event) {
const targets = {
'.js-quick-tag': activate,
'.js-quick-tag--abort': reset,
'.js-quick-tag--abort': promptReset,
'.js-quick-tag--submit': submit,
'.js-quick-tag--all': toggleAllImages,
'.media-box': modifyImageQueue,