Clear the abort callback on worker completion
authorAlexander Ebert <ebert@woltlab.com>
Sun, 21 Feb 2021 11:02:58 +0000 (12:02 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 21 Feb 2021 11:02:58 +0000 (12:02 +0100)
Fixes #3932

ts/WoltLabSuite/Core/Acp/Ui/Worker.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js

index 41098cb15d9b930c86dab41d336e5fa0c158c0f6..43f425d6d13793ff37ef7eff2edbc0dd18b9ae94 100644 (file)
@@ -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");
index c609a29fd39dcb2adb4892a4969d4aefd726aa15..7868d55ea6b413a6b26aa164442f9bbdee9154f8 100644 (file)
@@ -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");