From 9581c7362549ed8fbd9633fa3183724d004efabf Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 25 Feb 2009 05:29:01 +0000 Subject: Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog z-index adjusted incorrectly on mousedown. --- ui/ui.dialog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 6045fb51f..02dc79b11 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -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; }, -- cgit v1.2.3