Added missing loading class
authorAlexander Ebert <ebert@woltlab.com>
Fri, 25 Nov 2011 13:22:43 +0000 (14:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 25 Nov 2011 13:22:43 +0000 (14:22 +0100)
wcfsetup/install/files/js/WCF.js

index 596e198f07adf9a345240b063dd7243583e04b31..6c771c514665a8b4b9fe254c47568517a392a96b 100644 (file)
@@ -3274,6 +3274,9 @@ $.widget('ui.wcfDialog', {
 
                        // force open if using AJAX
                        this.options.autoOpen = true;
+
+                       // apply loading overlay
+                       this._content.addClass('overlayLoading');
                }
 
                if (this.options.autoOpen) {
@@ -3341,6 +3344,9 @@ $.widget('ui.wcfDialog', {
         * @param       jQuery          jqXHR
         */
        _success: function(data, textStatus, jqXHR) {
+               // remove loading overlay
+               this._content.removeClass('overlayLoading');
+               
                if (this.options.success !== null && $.isFunction(this.options.success)) {
                        this.options.success(data, textStatus, jqXHR);
                }