Fixed dialog title when executing multiple workers
authorAlexander Ebert <ebert@woltlab.com>
Mon, 18 Dec 2017 11:15:30 +0000 (12:15 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 18 Dec 2017 11:15:30 +0000 (12:15 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Worker.js

index 9e512c3cb07af253be7ea4d1682c1a2735d32cf5..fc1feb2fb24495d47f1557e27fddba171aeb7c6f 100644 (file)
@@ -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);
                },