diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-01-30 20:42:03 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-01-30 20:42:03 +0000 |
commit | 5484aad00526277a55e0a54fc861b08b2d5660eb (patch) | |
tree | 1ac4c8c09d93baff2f7b3c2e8f9862e5ef995d0a /ui | |
parent | 1322a98df99abae1d4bbebe863a2acc10694552c (diff) | |
download | jquery-ui-5484aad00526277a55e0a54fc861b08b2d5660eb.tar.gz jquery-ui-5484aad00526277a55e0a54fc861b08b2d5660eb.zip |
accordion: added ul-visual-test; improved solution for fixing ul-accordions, no more potential scope issues
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.accordion.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index da1712dcc..659cd4a5e 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -32,6 +32,11 @@ $.widget("ui.accordion", { } this.element.addClass("ui-accordion ui-widget ui-helper-reset"); + + // in lack of child-selectors in CSS we need to mark top-LIs in a UL-accordion for some IE-fix + if (this.element[0].nodeName == "UL") { + this.element.children("li").addClass("ui-accordion-li-fix"); + } 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'); }) @@ -369,7 +374,7 @@ $.extend($.ui.accordion, { clearStyle: false, event: "click", fillSpace: false, - header: "> li :first,> :not(li):even", + header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" |