Line 140: | Line 140: | ||
function hideOne(h, sec){ | function hideOne(h, sec){ | ||
+ | if(!sec.hasClass('hide')){ | ||
+ | collapsers.open--; | ||
+ | } | ||
sec.addClass('hide'); | sec.addClass('hide'); | ||
h.addClass('collapsed'); | h.addClass('collapsed'); | ||
− | |||
updateCollapseAll(); | updateCollapseAll(); | ||
} | } | ||
Line 152: | Line 154: | ||
sec.removeClass('hide'); | sec.removeClass('hide'); | ||
h.removeClass('collapsed'); | h.removeClass('collapsed'); | ||
− | collapsers.open++; | + | |
+ | if(sec.hasClass('hide')){ | ||
+ | collapsers.open++; | ||
+ | } | ||
updateCollapseAll(); | updateCollapseAll(); | ||
Revision as of 16:04, 17 October 2016