aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-24 21:58:40 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-24 21:58:40 -0500
commit3e370a44679da9c2b226d1667f13667f23bd239c (patch)
tree15e8cd771f2568916ee4404bd70c3db7c1fb7ca8 /ui/jquery.ui.dialog.js
parent0ef4b4f28a8183051fdaae7d896c09efbbecb0f9 (diff)
downloadjquery-ui-3e370a44679da9c2b226d1667f13667f23bd239c.tar.gz
jquery-ui-3e370a44679da9c2b226d1667f13667f23bd239c.zip
Dialog: Use ._focusable() and ._hoverable().
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();