Permalink
Browse files

Merge branch 'm24_MDL-33078' of git://github.com/danmarsden/moodle in…

…to MOODLE_24_STABLE
  • Loading branch information...
2 parents 65828d8 + 76b177f commit bd11fca3aa9ce370230bb3729fa5a96315caad42 @stronk7 stronk7 committed Feb 4, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 mod/scorm/datamodels/scorm_12.js.php
@@ -427,6 +427,12 @@ function LMSCommit (param) {
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 ?>&currentorg=<?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);';

0 comments on commit bd11fca

Please sign in to comment.