Skip to content
Browse files

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

…to MOODLE_24_STABLE
  • Loading branch information...
2 parents 8917ec5 + 216e2e5 commit ecd60630aca0026ec4abdf3ca97076ea076c157e @damyon damyon committed
View
2 mod/scorm/datamodels/aicc.js.php
@@ -246,7 +246,7 @@ function LMSFinish (param) {
// 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 = this.connectPrereqCallback;
- YUI.use('yui2-connection', function(Y) {
+ YUI().use('yui2-connection', function(Y) {
Y.YUI2.util.Connect.asyncRequest('GET', sURL, callback, null);
});
return "true";
View
2 mod/scorm/datamodels/callback.js.php
@@ -18,7 +18,7 @@
this.connectPrereqCallback = {
success: function(o) {
- YUI.use('yui2-treeview', 'yui2-layout', function(Y) {
+ YUI().use('yui2-treeview', 'yui2-layout', function(Y) {
scorm_tree_node = Y.YUI2.widget.TreeView.getTree('scorm_tree');
if (o.responseText !== undefined) {
//alert('got a response: ' + o.responseText);
View
2 mod/scorm/datamodels/scorm_12.js.php
@@ -236,7 +236,7 @@ function LMSFinish (param) {
// 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 = this.connectPrereqCallback;
- YUI.use('yui2-connection', function(Y) {
+ YUI().use('yui2-connection', function(Y) {
Y.YUI2.util.Connect.asyncRequest('GET', sURL, callback, null);
});
return result;
View
2 mod/scorm/datamodels/scorm_13.js.php
@@ -367,7 +367,7 @@ function Terminate (param) {
// 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 = this.connectPrereqCallback;
- YUI.use('yui2-connection', function(Y) {
+ YUI().use('yui2-connection', function(Y) {
Y.YUI2.util.Connect.asyncRequest('GET', sURL, callback, null);
});
} else {

0 comments on commit ecd6063

Please sign in to comment.
Something went wrong with that request. Please try again.