mirror of
https://github.com/moodle/moodle.git
synced 2025-03-10 10:58:38 +01:00
MDL-37484 SCORM: disable toc in player when using direct AICC url
This commit is contained in:
parent
f8e6e5bc30
commit
f2b3e82b09
@ -137,6 +137,7 @@ function scorm_add_instance($scorm, $mform=null) {
|
||||
$record->reference = $scorm->packageurl;
|
||||
} else if ($record->scormtype === SCORM_TYPE_AICCURL) {
|
||||
$record->reference = $scorm->packageurl;
|
||||
$record->hidetoc = SCORM_TOC_DISABLED; // TOC is useless for direct AICCURL so disable it.
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
@ -208,6 +209,7 @@ function scorm_update_instance($scorm, $mform=null) {
|
||||
$scorm->reference = $scorm->packageurl;
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_AICCURL) {
|
||||
$scorm->reference = $scorm->packageurl;
|
||||
$scorm->hidetoc = SCORM_TOC_DISABLED; // TOC is useless for direct AICCURL so disable it.
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -160,6 +160,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
$mform->addHelpButton('hidetoc', 'hidetoc', 'scorm');
|
||||
$mform->setDefault('hidetoc', $cfg_scorm->hidetoc);
|
||||
$mform->setAdvanced('hidetoc', $cfg_scorm->hidetoc_adv);
|
||||
$mform->disabledIf('hidetoc', 'scormtype', 'eq', SCORM_TYPE_AICCURL);
|
||||
|
||||
// Hide Navigation panel.
|
||||
$mform->addElement('selectyesno', 'hidenav', get_string('hidenav', 'scorm'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user