Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog z-index adjusted incorrectly on mousedown.

This commit is contained in:
Scott González 2009-02-25 05:29:01 +00:00
parent 47cdc542e8
commit 9581c73625

View 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;
},