From 6a3f2ad229e36566285e4f1084999368a2490186 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 16 Feb 2012 21:48:36 +1300 Subject: [PATCH] MDL-31659 SCORM remove old file and reference to it - it hasn't been used since the rework of SCORM player in MDL-22951 --- mod/scorm/datamodels/scorm_datamodels.js | 14 -------------- mod/scorm/locallib.php | 9 --------- 2 files changed, 23 deletions(-) delete mode 100644 mod/scorm/datamodels/scorm_datamodels.js diff --git a/mod/scorm/datamodels/scorm_datamodels.js b/mod/scorm/datamodels/scorm_datamodels.js deleted file mode 100644 index c199f8cfe9b..00000000000 --- a/mod/scorm/datamodels/scorm_datamodels.js +++ /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 diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 613266de5a3..4ba81278987 100644 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -1507,15 +1507,6 @@ function scorm_get_toc($user,$scorm,$cmid,$toclink=TOCJSLINK,$currentorg='',$sco $result->toc .= '
'; } - - 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.'¤torg='.$currentorg.$modestr); $result->tocmenu = $OUTPUT->single_select($url, 'scoid', $tocmenus, $sco->id, null, "tocmenu"); -- 2.17.1