Hide loading overlay when aborting AJAX request
authorMatthias Schmidt <gravatronics@live.com>
Sun, 6 Jul 2014 17:38:44 +0000 (19:38 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 6 Jul 2014 17:38:44 +0000 (19:38 +0200)
wcfsetup/install/files/js/WCF.js

index 3be6081267e48aff822e1d8003675690b8bbfbfc..1bb711484a64a6d65eefe6454fe0218273c84b85 100755 (executable)
@@ -2097,6 +2097,10 @@ WCF.Action.Proxy = Class.extend({
                if (this._lastRequest !== null) {
                        this._lastRequest.abort();
                        this._lastRequest = null;
+                       
+                       if (this.options.showLoadingOverlay || this._showLoadingOverlayOnce) {
+                               WCF.LoadingOverlayHandler.hide();
+                       }
                }
        },