From 8a369709937d355d33ef496008723a8e65f8abde Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 7 May 2013 09:21:20 +0200 Subject: [PATCH] Adds possibility to force-close un-closable dialogs --- wcfsetup/install/files/js/WCF.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 42bd3a2417..6cf5264268 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -8213,10 +8213,13 @@ $.widget('ui.wcfDialog', { /** * Closes this dialog. * + * This function can be manually called, even if the dialog is set as not + * closable by the user. + * * @param object event */ close: function(event) { - if (!this.isOpen() || !this.options.closable) { + if (!this.isOpen()) { return; } -- 2.20.1