Skip to content
Permalink
Browse files

MDL-28721 SCORM respect hidenav setting

  • Loading branch information...
danmarsden committed Aug 11, 2011
1 parent 3a5778e commit f08cc8276cfbfb86463f4bd76448f536f0d7582b
Showing with 4 additions and 1 deletion.
  1. +1 −0 mod/scorm/mod_form.php
  2. +3 −1 mod/scorm/module.js
@@ -204,6 +204,7 @@ function definition() {
$mform->addElement('selectyesno', 'hidenav', get_string('hidenav', 'scorm'));
$mform->setDefault('hidenav', $cfg_scorm->hidenav);
$mform->setAdvanced('hidenav');
$mform->disabledIf('hidenav', 'hidetoc', 'noteq', 0);
// Autocontinue
$mform->addElement('selectyesno', 'auto', get_string('autocontinue', 'scorm'));
@@ -32,7 +32,9 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
var scorm_hide_nav = true;
var scorm_hide_toc = true;
if (hide_toc == 0) {
scorm_hide_nav = false;
if (hide_nav != 1) {
scorm_hide_nav = false;
}
scorm_hide_toc = false;
} else if (hide_toc == 3) {
scorm_disable_toc = true;

0 comments on commit f08cc82

Please sign in to comment.
You can’t perform that action at this time.