Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-31659 SCORM remove old file and reference to it - it hasn't been …

…used since the rework of SCORM player in MDL-22951
  • Loading branch information...
commit 6a3f2ad229e36566285e4f1084999368a2490186 1 parent 0dde394
@danmarsden danmarsden authored
Showing with 0 additions and 23 deletions.
  1. +0 −14 mod/scorm/datamodels/scorm_datamodels.js
  2. +0 −9 mod/scorm/locallib.php
View
14 mod/scorm/datamodels/scorm_datamodels.js
@@ -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();
- }
-}
View
9 mod/scorm/locallib.php
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.