From 938a95e8dc14da9e02f5e6f427108f52d9ed63d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sun, 1 Feb 2009 02:11:06 +0000 Subject: [PATCH] Accordion: Added focus state to headers. --- ui/ui.accordion.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()