From c2b4d92d3de4d5f901f9ca73201dd424e50cc62f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Apr 2013 15:19:41 +0200 Subject: [PATCH] Fixed closing of dialogs --- wcfsetup/install/files/js/WCF.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index bf102718fa..fc7eacc28f 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7828,8 +7828,10 @@ $.widget('ui.wcfDialog', { /** * Closes this dialog. + * + * @param object event */ - close: function() { + close: function(event) { if (!this.isOpen() || !this.options.closable) { return; } @@ -7848,6 +7850,12 @@ $.widget('ui.wcfDialog', { if (this.options.onClose !== null) { this.options.onClose(); } + + if (event !== undefined) { + event.preventDefault(); + event.stopPropagation(); + return false; + } }, /** -- 2.20.1