aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 5d18b9b21..0183dd801 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -125,20 +125,6 @@ $.widget("ui.dialog", {
uiDialogTitlebarClose = $( "<a href='#'></a>" )
.addClass( "ui-dialog-titlebar-close ui-corner-all" )
.attr( "role", "button" )
- .hover(
- function() {
- uiDialogTitlebarClose.addClass( "ui-state-hover" );
- },
- function() {
- uiDialogTitlebarClose.removeClass( "ui-state-hover" );
- }
- )
- .focus(function() {
- uiDialogTitlebarClose.addClass( "ui-state-focus" );
- })
- .blur(function() {
- uiDialogTitlebarClose.removeClass( "ui-state-focus" );
- })
.click(function( event ) {
event.preventDefault();
self.close( event );
@@ -157,6 +143,8 @@ $.widget("ui.dialog", {
.prependTo( uiDialogTitlebar );
uiDialogTitlebar.find( "*" ).add( uiDialogTitlebar ).disableSelection();
+ this._hoverable( uiDialogTitlebarClose );
+ this._focusable( uiDialogTitlebarClose );
if ( options.draggable && $.fn.draggable ) {
self._makeDraggable();