aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-01 02:11:06 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-01 02:11:06 +0000
commit938a95e8dc14da9e02f5e6f427108f52d9ed63d9 (patch)
tree948188dd53ef4dbf08acb7cb48cd4bc6248db9aa /ui
parent52eb7d14aaf1b44b79e0287780464bb2fb1ab9a2 (diff)
downloadjquery-ui-938a95e8dc14da9e02f5e6f427108f52d9ed63d9.tar.gz
jquery-ui-938a95e8dc14da9e02f5e6f427108f52d9ed63d9.zip
Accordion: Added focus state to headers.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.accordion.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index 62f038a1a..c14d59319 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -40,7 +40,9 @@ $.widget("ui.accordion", {
this.headers = this.element.find(o.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all")
.bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); })
- .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); });
+ .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); })
+ .bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); })
+ .bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); });
this.headers
.next()