From: Alexander Ebert Date: Thu, 30 Aug 2012 13:05:49 +0000 (+0200) Subject: Fixed loading overlay and added missing use X-Git-Tag: 2.0.0_Beta_1~891^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=350fad79d41c912df98f55c64508c845bb267678;p=GitHub%2FWoltLab%2FWCF.git Fixed loading overlay and added missing use --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index d1b067b805..49694987a8 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1355,8 +1355,9 @@ WCF.Action.Proxy.prototype = { this.options.init(this); } + this._activeRequests++; + if (this.options.showLoadingOverlay) { - this._activeRequests++; this._showLoadingOverlay(); } }, @@ -1459,10 +1460,8 @@ WCF.Action.Proxy.prototype = { if ($.isFunction(this.options.after)) { this.options.after(); } - - if (this.options.showLoadingOverlay) { - this._activeRequests--; - } + + this._activeRequests--; // disable DOMNodeInserted event WCF.DOMNodeInsertedHandler.disable(); diff --git a/wcfsetup/install/files/lib/action/AbstractAction.class.php b/wcfsetup/install/files/lib/action/AbstractAction.class.php index 715cf0def5..3ae7b46bb6 100644 --- a/wcfsetup/install/files/lib/action/AbstractAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractAction.class.php @@ -2,6 +2,7 @@ namespace wcf\action; use wcf\system\event\EventHandler; use wcf\system\exception\IllegalLinkException; +use wcf\system\exception\PermissionDeniedException; use wcf\system\WCF; /**