diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-13 08:51:37 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-13 08:51:37 -0400 |
commit | 2bf91e8e28e3936ed56def5648dda479aefa9ad2 (patch) | |
tree | bcd4c00da87a037bbc088a67dff4f8ab24b030a9 /ui | |
parent | f560862666f89f9d6bac34712cb7f295f357f0e9 (diff) | |
download | jquery-ui-2bf91e8e28e3936ed56def5648dda479aefa9ad2.tar.gz jquery-ui-2bf91e8e28e3936ed56def5648dda479aefa9ad2.zip |
Accordion: Prevent the navigation filter from finding multiple elements. Fixes #4889 - Navigation parameter can open multiple sections.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.accordion.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |