Skip to content
Permalink
Browse files

Accordion: Added focus state to headers.

  • Loading branch information
scottgonzalez committed Feb 1, 2009
1 parent 52eb7d1 commit 938a95e8dc14da9e02f5e6f427108f52d9ed63d9
Showing with 3 additions and 1 deletion.
  1. +3 −1 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()

0 comments on commit 938a95e

Please sign in to comment.
You can’t perform that action at this time.