aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-25 05:29:01 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-25 05:29:01 +0000
commit9581c7362549ed8fbd9633fa3183724d004efabf (patch)
tree880f0b390bc40ca6e4c083faf00d34872c864f4d /ui
parent47cdc542e8be3a397ae596d603b90926e158f7b1 (diff)
downloadjquery-ui-9581c7362549ed8fbd9633fa3183724d004efabf.tar.gz
jquery-ui-9581c7362549ed8fbd9633fa3183724d004efabf.zip
Dialog: Passing parameters to moveToTop properly. Fixed #4214 - Dialog z-index adjusted incorrectly on mousedown.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.dialog.js8
1 files 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;
},