Merge branch 'm20_MDL-26176_cleanup' of github.com:danmarsden/moodle
[moodle.git] / mod / scorm / datamodels / scorm_datamodels.js
CommitLineData
bd257031 1function expandCollide(which,list,item) {
2 var el = document.ids ? document.ids[list] : document.getElementById ? document.getElementById(list) : document.all[list];
3 which = which.substring(0,(which.length));
4 var el2 = document.ids ? document.ids[which] : document.getElementById ? document.getElementById(which) : document.all[which];
5 if (el.style.display != "none") {
d436d197 6 el2.src = scormdata.plusicon;
bd257031 7 el.style.display='none';
8 new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
9 } else {
d436d197 10 el2.src = scormdata.minusicon;
bd257031 11 el.style.display='block';
12 new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
13 }
14}