Skip to content
Permalink
Browse files

Dialog: Added mousedown event handler on dialog title to focus. Fixed…

… #8063 - Dialog: Escape closes incorrect dialog.
  • Loading branch information...
DaleKocian authored and scottgonzalez committed Oct 16, 2012
1 parent 112185e commit 1a696678878f48748912b4c9d5df6da91c760b98
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.dialog.js
@@ -119,6 +119,10 @@ $.widget("ui.dialog", {
uiDialogTitlebar = ( this.uiDialogTitlebar = $( "<div>" ) )
.addClass( "ui-dialog-titlebar ui-widget-header " +
"ui-corner-all ui-helper-clearfix" )
.bind( "mousedown", function() {
// Dialog isn't getting focus when dragging (#8063)
uiDialog.focus();
})
.prependTo( uiDialog ),

uiDialogTitlebarClose = $( "<a href='#'></a>" )

1 comment on commit 1a69667

@jzaefferer

This comment has been minimized.

Copy link
Member

commented on 1a69667 Nov 26, 2012

@DaleKocian Dale, could you sign our CLA? http://jquery.github.com/cla.html Thanks.

Please sign in to comment.
You can’t perform that action at this time.