Fix failed workers without dialog
authorMatthias Schmidt <gravatronics@live.com>
Sun, 26 Nov 2017 13:07:02 +0000 (14:07 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 26 Nov 2017 13:07:02 +0000 (14:07 +0100)
See 835354e55da5151fbfc4e48322e26f2250486f08

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

index 1a54ba24bd7863d2fea41fd176a9483cad360e1b..9e512c3cb07af253be7ea4d1682c1a2735d32cf5 100644 (file)
@@ -96,7 +96,7 @@ define(['Ajax', 'Core', 'Language', 'Ui/Dialog'], function(Ajax, Core, Language,
                
                _ajaxFailure: function () {
                        var dialog = UiDialog.getDialog(this);
-                       if (dialog !== null) {
+                       if (dialog !== undefined) {
                                var spinner = elBySel('.fa-spinner', dialog.content);
                                spinner.classList.remove('fa-spinner');
                                spinner.classList.add('fa-times');