diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 17:20:19 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 17:20:19 -0500 |
commit | 62cda1f95d0e7040153f0b5fe5745d199a0a094e (patch) | |
tree | 5f0d3e32e5298fb76de50efe6b96b07c6e7c2116 /ui/jquery.ui.dialog.js | |
parent | 85dfcdf766cba709213c81ca2b8432b797aa45c1 (diff) | |
download | jquery-ui-62cda1f95d0e7040153f0b5fe5745d199a0a094e.tar.gz jquery-ui-62cda1f95d0e7040153f0b5fe5745d199a0a094e.zip |
Dialog: Set the _isOpen flag immediately in open(). Fixes #8958 - Dialog: Double ui-widget-overlay when opening modal dialog triggers an event opening same dialog.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 77bf68dd1..b6ac7aed7 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -215,6 +215,7 @@ $.widget( "ui.dialog", { return; } + this._isOpen = true; this.opener = $( this.document[0].activeElement ); this._size(); @@ -226,7 +227,6 @@ $.widget( "ui.dialog", { that._trigger("focus"); }); - this._isOpen = true; this._trigger("open"); }, |