From 350fad79d41c912df98f55c64508c845bb267678 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 30 Aug 2012 15:05:49 +0200 Subject: [PATCH] Fixed loading overlay and added missing use --- wcfsetup/install/files/js/WCF.js | 9 ++++----- .../install/files/lib/action/AbstractAction.class.php | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) 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; /** -- 2.20.1