Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28721 SCORM respect hidenav setting

  • Loading branch information...
commit f08cc8276cfbfb86463f4bd76448f536f0d7582b 1 parent 3a5778e
@danmarsden danmarsden authored
Showing with 4 additions and 1 deletion.
  1. +1 −0  mod/scorm/mod_form.php
  2. +3 −1 mod/scorm/module.js
View
1  mod/scorm/mod_form.php
@@ -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'));
View
4 mod/scorm/module.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.