Dialog: Move to top on mousedown instead of mouseup.

This commit is contained in:
Scott González 2008-12-23 04:38:50 +00:00
parent 5e936731bd
commit 9dc9f22201

View File

@ -64,7 +64,7 @@ $.widget("ui.dialog", {
role: 'dialog', role: 'dialog',
'aria-labelledby': titleId 'aria-labelledby': titleId
}) })
.mouseup(function() { .mousedown(function() {
self.moveToTop(); self.moveToTop();
}), }),
@ -82,9 +82,6 @@ $.widget("ui.dialog", {
'ui-corner-all ' + 'ui-corner-all ' +
'ui-helper-clearfix' 'ui-helper-clearfix'
) )
.mousedown(function() {
self.moveToTop();
})
.prependTo(uiDialog), .prependTo(uiDialog),
uiDialogTitlebarClose = $('<a href="#"/>') uiDialogTitlebarClose = $('<a href="#"/>')