mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Added mousedown event handler on dialog title to focus. Fixed #8063 - Dialog: Escape closes incorrect dialog.
This commit is contained in:
parent
112185ec8d
commit
1a69667887
4
ui/jquery.ui.dialog.js
vendored
4
ui/jquery.ui.dialog.js
vendored
@ -119,6 +119,10 @@ $.widget("ui.dialog", {
|
|||||||
uiDialogTitlebar = ( this.uiDialogTitlebar = $( "<div>" ) )
|
uiDialogTitlebar = ( this.uiDialogTitlebar = $( "<div>" ) )
|
||||||
.addClass( "ui-dialog-titlebar ui-widget-header " +
|
.addClass( "ui-dialog-titlebar ui-widget-header " +
|
||||||
"ui-corner-all ui-helper-clearfix" )
|
"ui-corner-all ui-helper-clearfix" )
|
||||||
|
.bind( "mousedown", function() {
|
||||||
|
// Dialog isn't getting focus when dragging (#8063)
|
||||||
|
uiDialog.focus();
|
||||||
|
})
|
||||||
.prependTo( uiDialog ),
|
.prependTo( uiDialog ),
|
||||||
|
|
||||||
uiDialogTitlebarClose = $( "<a href='#'></a>" )
|
uiDialogTitlebarClose = $( "<a href='#'></a>" )
|
||||||
|
Loading…
Reference in New Issue
Block a user