From b413302c00881d9a6f0a1143038a7903c9049c11 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 7 Jan 2010 04:47:17 +0000 Subject: --- ui/jquery.ui.dialog.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/jquery.ui.dialog.js') 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){ -- cgit v1.2.3