From: Magnus Kühn Date: Sat, 29 Dec 2012 14:36:13 +0000 (+0100) Subject: Added loading() in wcfDialog X-Git-Tag: 2.0.0_Beta_1~639^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e094c416bc7b12ae1c1d63cefcd2a7aaf399efe;p=GitHub%2FWoltLab%2FWCF.git Added loading() in wcfDialog --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 4c1af8576e..17dfeb1387 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7349,12 +7349,10 @@ $.widget('ui.wcfDialog', { type: this.options.type, url: this.options.url }); + this.loading(); // force open if using AJAX this.options.autoOpen = true; - - // apply loading overlay - this._content.addClass('overlayLoading'); } if (this.options.autoOpen) { @@ -7531,6 +7529,14 @@ $.widget('ui.wcfDialog', { return this._isOpen; }, + /** + * Clears the dialog and applies a loading overlay + */ + loading: function() { + this._content.addClass('overlayLoading'); + this.render(); + }, + /** * Closes this dialog. */