From f2fe2a21a2a3257f44866a6cc4b3544bbdd304a8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 18 Dec 2017 12:15:30 +0100 Subject: [PATCH] Fixed dialog title when executing multiple workers --- wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js | 5 +++++ 1 file changed, 5 insertions(+) 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 9e512c3cb0..fc1feb2fb2 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js @@ -41,6 +41,11 @@ define(['Ajax', 'Core', 'Language', 'Ui/Dialog'], function(Ajax, Core, Language, }, options); this._options.dialogId += 'Worker'; + // update title + if (UiDialog.getDialog(this._options.dialogId) !== undefined) { + UiDialog.setTitle(this._options.dialogId, this._options.dialogTitle); + } + this._request = Ajax.api(this); }, -- 2.20.1