mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Move to top on mousedown instead of mouseup.
This commit is contained in:
parent
5e936731bd
commit
9dc9f22201
@ -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="#"/>')
|
||||||
|
Loading…
Reference in New Issue
Block a user