]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog z-index adjus...
authorScott González <scott.gonzalez@gmail.com>
Wed, 25 Feb 2009 05:29:01 +0000 (05:29 +0000)
committerScott González <scott.gonzalez@gmail.com>
Wed, 25 Feb 2009 05:29:01 +0000 (05:29 +0000)
ui/ui.dialog.js

index 6045fb51f4b8b6d2ce97df817d1f28c3541f142d..02dc79b11d895a3d7a8c192d0279e42d5b26f219 100644 (file)
@@ -64,7 +64,7 @@ $.widget("ui.dialog", {
                                        'aria-labelledby': titleId
                                })
                                .mousedown(function(event) {
-                                       self.moveToTop(event);
+                                       self.moveToTop(false, event);
                                }),
 
                        uiDialogContent = this.element
@@ -200,7 +200,7 @@ $.widget("ui.dialog", {
                this._trigger('focus', event);
        },
 
-       open: function(event) {
+       open: function() {
                if (this._isOpen) { return; }
 
                var options = this.options,
@@ -211,7 +211,7 @@ $.widget("ui.dialog", {
                this._size();
                this._position(options.position);
                uiDialog.show(options.show);
-               this.moveToTop(true, event);
+               this.moveToTop(true);
 
                // prevent tabbing out of modal dialogs
                (options.modal && uiDialog.bind('keypress.ui-dialog', function(event) {
@@ -243,7 +243,7 @@ $.widget("ui.dialog", {
                        .filter(':first')
                        .focus();
 
-               this._trigger('open', event);
+               this._trigger('open');
                this._isOpen = true;
        },