From d4f4b5f44967500f603030cf928ed7647df513cd Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 21 Feb 2021 12:02:58 +0100 Subject: [PATCH] Clear the abort callback on worker completion Fixes #3932 --- ts/WoltLabSuite/Core/Acp/Ui/Worker.ts | 2 ++ wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js | 1 + 2 files changed, 3 insertions(+) diff --git a/ts/WoltLabSuite/Core/Acp/Ui/Worker.ts b/ts/WoltLabSuite/Core/Acp/Ui/Worker.ts index 41098cb15d..43f425d6d1 100644 --- a/ts/WoltLabSuite/Core/Acp/Ui/Worker.ts +++ b/ts/WoltLabSuite/Core/Acp/Ui/Worker.ts @@ -100,6 +100,8 @@ class AcpUiWorker implements AjaxCallbackObject, DialogCallbackObject { parameters: data.parameters, }); } else { + UiDialog.setCallback(this, "onClose", () => {}); + const spinner = content.querySelector(".fa-spinner") as HTMLSpanElement; spinner.classList.remove("fa-spinner"); spinner.classList.add("fa-check", "green"); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js index c609a29fd3..7868d55ea6 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js @@ -57,6 +57,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Langua }); } else { + Dialog_1.default.setCallback(this, "onClose", () => { }); const spinner = content.querySelector(".fa-spinner"); spinner.classList.remove("fa-spinner"); spinner.classList.add("fa-check", "green"); -- 2.20.1