mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-28721 SCORM - respect hide navigation buttons setting.
This commit is contained in:
parent
7969f1ecf5
commit
93e46331fc
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user