MDL-31659 SCORM remove old file and reference to it - it hasn't been used since the...
authorDan Marsden <dan@danmarsden.com>
Thu, 16 Feb 2012 08:48:36 +0000 (21:48 +1300)
committerDan Marsden <dan@danmarsden.com>
Fri, 17 Feb 2012 02:29:36 +0000 (15:29 +1300)
mod/scorm/datamodels/scorm_datamodels.js [deleted file]
mod/scorm/locallib.php

diff --git a/mod/scorm/datamodels/scorm_datamodels.js b/mod/scorm/datamodels/scorm_datamodels.js
deleted file mode 100644 (file)
index c199f8c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-function expandCollide(which,list,item) {
-    var el = document.ids ? document.ids[list] : document.getElementById ? document.getElementById(list) : document.all[list];
-    which = which.substring(0,(which.length));
-    var el2 = document.ids ? document.ids[which] : document.getElementById ? document.getElementById(which) : document.all[which];
-    if (el.style.display != "none") {
-        el2.src = scormdata.plusicon;
-        el.style.display='none';
-        new cookie("hide:SCORMitem" + item, 1, 356, "/").set();
-    } else {
-        el2.src = scormdata.minusicon;
-        el.style.display='block';
-        new cookie("hide:SCORMitem" + item, 1, -1, "/").set();
-    }
-}
\ No newline at end of file
index 613266d..4ba8127 100644 (file)
@@ -1507,15 +1507,6 @@ function scorm_get_toc($user,$scorm,$cmid,$toclink=TOCJSLINK,$currentorg='',$sco
         $result->toc .= '<div id="scorm_navpanel"></div>';
     }
 
-
-    if ($scorm->hidetoc == 0) {
-        $PAGE->requires->data_for_js('scormdata', array(
-                'plusicon' => $OUTPUT->pix_url('plus', 'scorm'),
-                'minusicon' => $OUTPUT->pix_url('minus', 'scorm')));
-        $PAGE->requires->js('/lib/cookies.js');
-        $PAGE->requires->js('/mod/scorm/datamodels/scorm_datamodels.js');
-    }
-
     $url = new moodle_url('/mod/scorm/player.php?a='.$scorm->id.'&currentorg='.$currentorg.$modestr);
     $result->tocmenu = $OUTPUT->single_select($url, 'scoid', $tocmenus, $sco->id, null, "tocmenu");