diff options
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index c84e10cd0..1632e18cd 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -147,7 +147,11 @@ $.widget("ui.dialog", { self._isOpen = false; (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe()); - (options.autoOpen && self.open()); + }, + _init: function() { + if ( this.options.autoOpen ) { + this.open(); + } }, destroy: function() { |