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