Merge branch 'm20_MDL-26176_cleanup' of github.com:danmarsden/moodle
[moodle.git] / mod / scorm / datamodels / scorm_datamodels.js
1 function 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") {
6         el2.src = scormdata.plusicon;
7         el.style.display='none';
8         new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
9     } else {
10         el2.src = scormdata.minusicon;
11         el.style.display='block';
12         new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
13     }
14 }