r1945 - trunk/ui

r1945 - trunk/ui


Author: scott.gonzalez
Date: Sat Jan 31 18:11:06 2009
New Revision: 1945
Modified:
trunk/ui/ui.accordion.js
Log:
Accordion: Added focus state to headers.
Modified: trunk/ui/ui.accordion.js
==============================================================================
--- trunk/ui/ui.accordion.js    (original)
+++ trunk/ui/ui.accordion.js    Sat Jan 31 18:11:06 2009
@@ -40,7 +40,9 @@
        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()