mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog z-index adjusted incorrectly on mousedown.
This commit is contained in:
parent
47cdc542e8
commit
9581c73625
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user