Skip to content
Permalink
Browse files

Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialo…

…g z-index adjusted incorrectly on mousedown.
  • Loading branch information...
scottgonzalez committed Feb 25, 2009
1 parent 47cdc54 commit 9581c7362549ed8fbd9633fa3183724d004efabf
Showing with 4 additions and 4 deletions.
  1. +4 −4 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;
},

0 comments on commit 9581c73

Please sign in to comment.
You can’t perform that action at this time.