Skip to content

Commit 9581c73

Browse files
committed
Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog z-index adjusted incorrectly on mousedown.
1 parent 47cdc54 commit 9581c73

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ui/ui.dialog.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $.widget("ui.dialog", {
6464
'aria-labelledby': titleId
6565
})
6666
.mousedown(function(event) {
67-
self.moveToTop(event);
67+
self.moveToTop(false, event);
6868
}),
6969

7070
uiDialogContent = this.element
@@ -200,7 +200,7 @@ $.widget("ui.dialog", {
200200
this._trigger('focus', event);
201201
},
202202

203-
open: function(event) {
203+
open: function() {
204204
if (this._isOpen) { return; }
205205

206206
var options = this.options,
@@ -211,7 +211,7 @@ $.widget("ui.dialog", {
211211
this._size();
212212
this._position(options.position);
213213
uiDialog.show(options.show);
214-
this.moveToTop(true, event);
214+
this.moveToTop(true);
215215

216216
// prevent tabbing out of modal dialogs
217217
(options.modal && uiDialog.bind('keypress.ui-dialog', function(event) {
@@ -243,7 +243,7 @@ $.widget("ui.dialog", {
243243
.filter(':first')
244244
.focus();
245245

246-
this._trigger('open', event);
246+
this._trigger('open');
247247
this._isOpen = true;
248248
},
249249

0 commit comments

Comments
 (0)