From f81b5cbdcdd2cb1a521eed5bcac868112cf37232 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 14 Nov 2011 19:16:07 +0100 Subject: [PATCH] Fixed close function for dialogs --- wcfsetup/install/files/js/WCF.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.20.1