mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
32c342a282
commit
140ca4804e
@ -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");
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user