Line 183: | Line 183: | ||
} | } | ||
}else if(secid){ | }else if(secid){ | ||
− | + | hid = secid; | |
− | + | secid = 'sec-'+hid; | |
− | + | h.attr('id', hid); | |
− | + | sec.attr('id', secid); | |
− | + | id = secid; | |
}else{ | }else{ | ||
id = 'collapser-'+(collapsers.nextId++); | id = 'collapser-'+(collapsers.nextId++); | ||
secid = 'sec-'+id; | secid = 'sec-'+id; | ||
sec.attr('id', secid); | sec.attr('id', secid); | ||
− | hid = | + | hid = id; |
h.attr('id', hid); | h.attr('id', hid); | ||
} | } | ||
+ | console.log(id, hid, secid); | ||
h.insertBefore(sec); | h.insertBefore(sec); | ||
Line 210: | Line 211: | ||
} | } | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
collapsers.allowConditional = false; | collapsers.allowConditional = false; | ||
Line 223: | Line 218: | ||
function postcollapse(){ | function postcollapse(){ | ||
+ | function toggleAll(){ | ||
+ | collapsers.all.forEach(function(act){ | ||
+ | |||
+ | }); | ||
+ | } | ||
+ | |||
if(collapsers.all.length){ | if(collapsers.all.length){ | ||
var wrap = $('#ayoop-wrapper'), | var wrap = $('#ayoop-wrapper'), |
Revision as of 14:20, 17 October 2016