From 92030a391764ef2fffeb8e4c64fe3a21aeca8b1c Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 12 Dec 2022 19:56:27 +0530 Subject: [PATCH] Don't collapse the task entry if 'Stop Task' is pressed --- ui/media/js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 051fdc9e..8b721ff4 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -820,6 +820,8 @@ function createTask(task) { task['stopTask'] = taskEntry.querySelector('.stopTask') task['stopTask'].addEventListener('click', (e) => { + e.stopPropagation() + let question = (task['isProcessing'] ? "Stop this task?" : "Remove this task?") shiftOrConfirm(e, question, async function(e) { if (task.batchesDone <= 0 || !task.isProcessing) {