diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-05-31 12:19:20 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-05-31 12:19:20 +0000 |
commit | 140ca4804e22629d614124f34aad86fe589fc48d (patch) | |
tree | be99732524aef99ac809b56cb4b78bdf29c0a415 /demos/dialog | |
parent | 32c342a28282ab4b920944aad7f610fdfa2161a1 (diff) | |
download | jquery-ui-140ca4804e22629d614124f34aad86fe589fc48d.tar.gz jquery-ui-140ca4804e22629d614124f34aad86fe589fc48d.zip |
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).
Diffstat (limited to 'demos/dialog')
-rw-r--r-- | demos/dialog/modal-form.html | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/demos/dialog/modal-form.html b/demos/dialog/modal-form.html index 508c73826..da95b1278 100644 --- a/demos/dialog/modal-form.html +++ b/demos/dialog/modal-form.html @@ -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"); }); |