Skip to content
Permalink
Browse files

Accordion: Prevent the navigation filter from finding multiple elemen…

…ts. Fixes #4889 - Navigation parameter can open multiple sections.
  • Loading branch information...
scottgonzalez committed Jul 13, 2010
1 parent f560862 commit 2bf91e8e28e3936ed56def5648dda479aefa9ad2
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.accordion.js
@@ -53,7 +53,7 @@ $.widget("ui.accordion", {
.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");

if ( o.navigation ) {
var current = this.element.find("a").filter(o.navigationFilter);
var current = this.element.find("a").filter(o.navigationFilter).eq(0);
if ( current.length ) {
var header = current.closest(".ui-accordion-header");
if ( header.length ) {

0 comments on commit 2bf91e8

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