aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-01-07 04:47:17 +0000
committerScott González <scott.gonzalez@gmail.com>2010-01-07 04:47:17 +0000
commitb413302c00881d9a6f0a1143038a7903c9049c11 (patch)
treea00a7f0d61d9976fa028363ad3de1596c9da19e5 /ui/jquery.ui.dialog.js
parent90fb45dffafc2e891b1ebca948ad33e6b94de112 (diff)
downloadjquery-ui-b413302c00881d9a6f0a1143038a7903c9049c11.tar.gz
jquery-ui-b413302c00881d9a6f0a1143038a7903c9049c11.zip
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js7
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){