mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-33078 SCORM: rebuild toc when calling LMSCommit to improve pre-req handling
This commit is contained in:
parent
361069cbbb
commit
a022192a3b
@ -427,6 +427,12 @@ function SCORMapi1_2() {
|
||||
if (param == "") {
|
||||
if (Initialized) {
|
||||
result = StoreData(cmi,false);
|
||||
// trigger TOC update
|
||||
var sURL = "<?php echo $CFG->wwwroot; ?>" + "/mod/scorm/prereqs.php?a=<?php echo $scorm->id ?>&scoid=<?php echo $scoid ?>&attempt=<?php echo $attempt ?>&mode=<?php echo $mode ?>¤torg=<?php echo $currentorg ?>&sesskey=<?php echo sesskey(); ?>";
|
||||
var callback = M.mod_scorm.connectPrereqCallback;
|
||||
YUI().use('yui2-connection', function(Y) {
|
||||
Y.YUI2.util.Connect.asyncRequest('GET', sURL, callback, null);
|
||||
});
|
||||
<?php
|
||||
if (scorm_debugging($scorm)) {
|
||||
echo 'LogAPICall("Commit", param, "", 0);';
|
||||
|
Loading…
x
Reference in New Issue
Block a user