Skip to content

Commit

Permalink
Closes #803, #791 #891: issues with accordion display using menu or list
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Jul 3, 2014
1 parent bf57d29 commit 32c8a4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ $.fn.accordion = function(parameters) {
var
$activeTitle = $title.eq(index),
$activeContent = $activeTitle.next($content),
$others = module.is.menu() ? $activeTitle.parent().siblings(selector.item).find(selector.title) : $activeTitle.siblings(selector.title);
$previousTitle = $others.filter('.' + className.active),
$otherSections = module.is.menu()
? $activeTitle.parent().siblings(selector.item).find(selector.title)
: $activeTitle.siblings(selector.title),
$previousTitle = $otherSections.filter('.' + className.active),
$previousContent = $previousTitle.next($title),
contentIsOpen = ($previousTitle.size() > 0)
;
Expand Down

0 comments on commit 32c8a4e

Please sign in to comment.