aboutsummaryrefslogtreecommitdiffstats
path: root/demos/dialog
diff options
context:
space:
mode:
Diffstat (limited to 'demos/dialog')
-rw-r--r--demos/dialog/modal-form.html21
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");
});