Dialog Modal Form Demo: Added ui-state-focus class on focus (fixes #4568 - Demo: Dialog modal form demo doesn't react to focus on button).

This commit is contained in:
Scott González 2009-05-31 12:19:20 +00:00
parent 32c342a282
commit 140ca4804e

View File

@ -106,16 +106,23 @@
$('#dialog').dialog('open');
})
.hover(
function(){
$(this).addClass("ui-state-hover");
function() {
$(this).addClass("ui-state-hover");
},
function(){
$(this).removeClass("ui-state-hover");
function() {
$(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");
});