diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-12-22 15:35:03 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-12-22 15:35:03 +0000 |
commit | bc5df7412cd3a3ce21a4ba2c87242fe92a78e227 (patch) | |
tree | 7da6d1d7f5938cb51e417d979e412e901d6494a5 /ui/ui.accordion.js | |
parent | 100e11c85e7ddd1d48e03f7d0c9686f27506eb30 (diff) | |
download | jquery-ui-bc5df7412cd3a3ce21a4ba2c87242fe92a78e227.tar.gz jquery-ui-bc5df7412cd3a3ce21a4ba2c87242fe92a78e227.zip |
accordion: update content div classes to move theme classes to wrapper with seperate content-wrap and content classes
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r-- | ui/ui.accordion.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 2fc1cefb3..39dfc55bf 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -35,7 +35,7 @@ $.widget("ui.accordion", { .bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); }) .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }); // wrap content elements in div against animation issues - headers.next().wrap("<div></div>").addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); + headers.next().wrap("<div></div>").addClass("ui-accordion-content").parent().addClass("ui-accordion-content-wrap ui-helper-reset ui-widget-content ui-corner-bottom"); var active = options.active = findActive(headers, options.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"); active.parent().addClass("selected"); @@ -91,7 +91,7 @@ $.widget("ui.accordion", { .removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex"); headers.find("a").removeAttr("tabindex"); headers.children(".ui-icon").remove(); - headers.next().children().removeClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").each(function(){ + headers.next().children().removeClass("ui-accordion-content").each(function(){ $(this).parent().replaceWith(this); }) }, |