File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -125,20 +125,6 @@ $.widget("ui.dialog", {
125
125
uiDialogTitlebarClose = $ ( "<a href='#'></a>" )
126
126
. addClass ( "ui-dialog-titlebar-close ui-corner-all" )
127
127
. attr ( "role" , "button" )
128
- . hover (
129
- function ( ) {
130
- uiDialogTitlebarClose . addClass ( "ui-state-hover" ) ;
131
- } ,
132
- function ( ) {
133
- uiDialogTitlebarClose . removeClass ( "ui-state-hover" ) ;
134
- }
135
- )
136
- . focus ( function ( ) {
137
- uiDialogTitlebarClose . addClass ( "ui-state-focus" ) ;
138
- } )
139
- . blur ( function ( ) {
140
- uiDialogTitlebarClose . removeClass ( "ui-state-focus" ) ;
141
- } )
142
128
. click ( function ( event ) {
143
129
event . preventDefault ( ) ;
144
130
self . close ( event ) ;
@@ -157,6 +143,8 @@ $.widget("ui.dialog", {
157
143
. prependTo ( uiDialogTitlebar ) ;
158
144
159
145
uiDialogTitlebar . find ( "*" ) . add ( uiDialogTitlebar ) . disableSelection ( ) ;
146
+ this . _hoverable ( uiDialogTitlebarClose ) ;
147
+ this . _focusable ( uiDialogTitlebarClose ) ;
160
148
161
149
if ( options . draggable && $ . fn . draggable ) {
162
150
self . _makeDraggable ( ) ;
You can’t perform that action at this time.
0 commit comments