diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-02-16 02:13:38 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-02-16 02:13:38 +0000 |
commit | c9f30818afb8c4cd514fcebc8ee05a409e78e065 (patch) | |
tree | 31ec090332f276b1332871de1eb84a3231826e8e /ui | |
parent | 828bcdd2f0befbf450dcd1d7c387388acd7a191b (diff) | |
download | jquery-ui-c9f30818afb8c4cd514fcebc8ee05a409e78e065.tar.gz jquery-ui-c9f30818afb8c4cd514fcebc8ee05a409e78e065.zip |
Dialog: Update the internal flag for whether or not the dialog is open before triggering the close event.
Fixes #5184 - isOpen in dialogclose event is true.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index aba6f50b7..53af64142 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -188,6 +188,8 @@ $.widget("ui.dialog", { (self.overlay && self.overlay.destroy()); self.uiDialog.unbind('keypress.ui-dialog'); + self._isOpen = false; + (self.options.hide ? self.uiDialog.hide(self.options.hide, function() { self._trigger('close', event); @@ -196,8 +198,6 @@ $.widget("ui.dialog", { $.ui.dialog.overlay.resize(); - self._isOpen = false; - // adjust the maxZ to allow other modal dialogs to continue to work (see #4309) if (self.options.modal) { var maxZ = 0; |