Fixed error message overlay in `AjaxRequest`
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Jun 2015 17:23:46 +0000 (19:23 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Jun 2015 17:23:46 +0000 (19:23 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Ajax/Request.js

index cfd81ba5082df16280ed6b9bf8dd0e07de95283e..081863e232d75b6929589635e83e9d078aceec36 100644 (file)
@@ -100,7 +100,6 @@ define(['Core', 'Language', 'DOM/ChangeListener', 'DOM/Util', 'UI/Dialog', 'Wolt
                        this._xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
                        
                        var self = this;
-                       
                        var options = Core.clone(this._options);
                        this._xhr.onload = function() {
                                if (this.readyState === XMLHttpRequest.DONE) {
@@ -271,7 +270,7 @@ define(['Core', 'Language', 'DOM/ChangeListener', 'DOM/Util', 'UI/Dialog', 'Wolt
                                
                                var html = '<div class="ajaxDebugMessage"><p>' + message + '</p>' + details + '</div>';
                                
-                               UIDialog.open(DOMUtil.getUniqueId(), html, {
+                               UIDialog.openStatic(DOMUtil.getUniqueId(), html, {
                                        title: Language.get('wcf.global.error.title')
                                });
                        }