Skip to content
Permalink
Browse files

Dialog Modal Form Demo: Added ui-state-focus class on focus (fixes #4…

…568 - Demo: Dialog modal form demo doesn't react to focus on button).
  • Loading branch information
scottgonzalez committed May 31, 2009
1 parent 32c342a commit 140ca4804e22629d614124f34aad86fe589fc48d
Showing with 14 additions and 7 deletions.
  1. +14 −7 demos/dialog/modal-form.html
@@ -106,16 +106,23 @@
$('#dialog').dialog('open'); $('#dialog').dialog('open');
}) })
.hover( .hover(
function(){ function() {
$(this).addClass("ui-state-hover"); $(this).addClass("ui-state-hover");
}, },
function(){ function() {
$(this).removeClass("ui-state-hover"); $(this).removeClass("ui-state-hover");
} }
).mousedown(function(){ )
$(this).addClass("ui-state-active"); .focus(function() {
$(this).addClass('ui-state-focus');
}) })
.mouseup(function(){ .blur(function() {
$(this).removeClass('ui-state-focus');
})
.mousedown(function() {
$(this).addClass("ui-state-active");
})
.mouseup(function() {
$(this).removeClass("ui-state-active"); $(this).removeClass("ui-state-active");
}); });

0 comments on commit 140ca48

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