]> source.dussan.org Git - jquery-ui.git/commitdiff
Partial fix for #2538 - still need to add support for options
authorRichard Worth <rdworth@gmail.com>
Mon, 9 Jun 2008 12:21:50 +0000 (12:21 +0000)
committerRichard Worth <rdworth@gmail.com>
Mon, 9 Jun 2008 12:21:50 +0000 (12:21 +0000)
ui/ui.dialog.js

index 03f4191e1d2fb0b1f94dad40741315feccb4ec24..4418edbfc7918db2c2dfc7c91b6172d6124fa56b 100644 (file)
@@ -229,7 +229,7 @@ $.widget("ui.dialog", {
                this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
                this.uiDialog.appendTo('body');
                this.position(this.options.position);
-               this.uiDialog.show();
+               this.uiDialog.show(this.options.show);
                this.moveToTop(true);
                
                // CALLBACK: open
@@ -256,7 +256,7 @@ $.widget("ui.dialog", {
        
        close: function() {
                (this.overlay && this.overlay.destroy());
-               this.uiDialog.hide();
+               this.uiDialog.hide(this.options.hide);
 
                // CALLBACK: close
                var closeEV = null;