diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-01-07 04:47:17 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-01-07 04:47:17 +0000 |
commit | b413302c00881d9a6f0a1143038a7903c9049c11 (patch) | |
tree | a00a7f0d61d9976fa028363ad3de1596c9da19e5 /ui/jquery.ui.dialog.js | |
parent | 90fb45dffafc2e891b1ebca948ad33e6b94de112 (diff) | |
download | jquery-ui-b413302c00881d9a6f0a1143038a7903c9049c11.tar.gz jquery-ui-b413302c00881d9a6f0a1143038a7903c9049c11.zip |
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 5664e9b09..b2ec2fcc1 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -421,6 +421,10 @@ $.widget("ui.dialog", { } } + var isVisible = this.uiDialog.is(':visible'); + if (!isVisible) { + this.uiDialog.show(); + } this.uiDialog.position({ my: myAt.join(' '), at: myAt.join(' '), @@ -428,6 +432,9 @@ $.widget("ui.dialog", { of: window, collision: 'fit' }); + if (!isVisible) { + this.uiDialog.hide(); + } }, _setOption: function(key, value){ |