MDL-28721 SCORM - respect hide navigation buttons setting.

This commit is contained in:
Dan Marsden 2011-08-12 09:55:13 +12:00
parent 7969f1ecf5
commit 93e46331fc
2 changed files with 4 additions and 1 deletions

View File

@ -147,6 +147,7 @@ class mod_scorm_mod_form extends moodleform_mod {
$mform->addElement('selectyesno', 'hidenav', get_string('hidenav', 'scorm'));
$mform->setDefault('hidenav', $cfg_scorm->hidenav);
$mform->setAdvanced('hidenav', $cfg_scorm->hidenav_adv);
$mform->disabledIf('hidenav', 'hidetoc', 'noteq', 0);
//-------------------------------------------------------------------------------
// grade Settings

View File

@ -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;