From: Alexander Ebert Date: Mon, 14 Nov 2011 18:16:07 +0000 (+0100) Subject: Fixed close function for dialogs X-Git-Tag: 2.0.0_Beta_1~1591^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f81b5cbdcdd2cb1a521eed5bcac868112cf37232;p=GitHub%2FWoltLab%2FWCF.git Fixed close function for dialogs --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 69f659d833..8aa22c5c00 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3239,9 +3239,10 @@ $.widget('ui.wcfAJAXDialog', $.ui.dialog, { effect: 'fade' }; - this.options.close = function(event, ui) { - // loading ajax content seems to block properly closing - $(this).parent('.ui-dialog').empty().remove(); + this.options.close = function() { + // "display: inline-block" is set by stylesheet, but additionally flagged + // with important, thus we have to force the dialog to stay hidden + $(this).parent('.ui-dialog').css({ display: 'none !important'}); }; if (this.options.preventClose) {