mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
SCORM MDL-23470 temporary disabling of error handling in pre-req loading - this is interfering with some packages
This commit is contained in:
parent
785d6603dd
commit
86875a83c0
1 changed files with 3 additions and 2 deletions
|
@ -231,8 +231,9 @@ function SCORMapi1_2() {
|
||||||
failure: function(o) {
|
failure: function(o) {
|
||||||
// do some sort of error handling
|
// do some sort of error handling
|
||||||
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 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(); ?>";
|
||||||
alert('Prerequisites update failed - must restart SCORM player');
|
//TODO: Enable this error handing correctly - avoiding issues when closing player MDL-23470
|
||||||
window.location.href = sURL;
|
//alert('Prerequisites update failed - must restart SCORM player');
|
||||||
|
//window.location.href = sURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue