From 2bf91e8e28e3936ed56def5648dda479aefa9ad2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 13 Jul 2010 08:51:37 -0400 Subject: [PATCH] Accordion: Prevent the navigation filter from finding multiple elements. Fixes #4889 - Navigation parameter can open multiple sections. --- ui/jquery.ui.accordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 656094681..07fad3130 100644 --- a/ui/jquery.ui.accordion.js +++ b/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 ) { -- 2.39.5