From: Magnus Kühn Date: Sun, 28 Oct 2012 05:39:14 +0000 (+0100) Subject: Only displays AJAX content when the dialog is visible X-Git-Tag: 2.0.0_Beta_1~830^2^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94d5ff20fc11466def3adb99b0a78c42736637bc;p=GitHub%2FWoltLab%2FWCF.git Only displays AJAX content when the dialog is visible --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index d0df0e1750..998b90a22c 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -6823,14 +6823,16 @@ $.widget('ui.wcfDialog', { * @param jQuery jqXHR */ _success: function(data, textStatus, jqXHR) { - // initialize dialog content - this._initDialog(data); - - // remove loading overlay - this._content.removeClass('overlayLoading'); - - if (this.options.success !== null && $.isFunction(this.options.success)) { - this.options.success(data, textStatus, jqXHR); + if (this._isOpen) { + // initialize dialog content + this._initDialog(data); + + // remove loading overlay + this._content.removeClass('overlayLoading'); + + if (this.options.success !== null && $.isFunction(this.options.success)) { + this.options.success(data, textStatus, jqXHR); + } } },