Line 241: | Line 241: | ||
function toggleAll(evt){ | function toggleAll(evt){ | ||
evt.preventDefault(); | evt.preventDefault(); | ||
+ | |||
+ | var open = collapsers.open; | ||
collapsers.all.forEach(function(act){ | collapsers.all.forEach(function(act){ | ||
− | if( | + | if(open){ |
hideOne(act.h, act.sec); | hideOne(act.h, act.sec); | ||
}else{ | }else{ |
Revision as of 16:02, 17 October 2016