Collapsible Will No Longer Expand
The code below used to work. Now it doesn't. I'm not certain when it stopped working but recent changes have been Appery upgraded the platform; I changed the theme; I changed the target Android version (but this has stopped working even in the tester).
codevar d = new Date();
var weekday = new Array(7);
weekday[0] = "Sun"
weekday[1] = "Mon"
weekday[2] = "Tue"
weekday[3] = "Wed"
weekday[4] = "Thu"
weekday[5] = "Fri"
weekday[6] = "Sat"
var currDoW = weekday[d.getDay()];
Apperyio("collSetGrpMembers").children().each(function() {
var collHdr = $(this).closest('[data-role="collapsible"]').find('[name="collBlockHdrGrpMembers"]');
var collHdrText = collHdr.text();
var DoW = collHdrText.substring(0, 3);
if (DoW == currDoW) {
collHdr.trigger('expand');
//collHdr.collapsible('expand');
}
}
);/code
The code is meant to expand the block with a header text that matches the day of the week. It took me ages to get it working before and now it no longer works. Very frustrating. Please help