Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-36800 SCORM: Fix Yui().use calls - thanks to Nancy Cheng for the fix

  • Loading branch information...
commit 216e2e5b7f4dc35843ca8d1114adf0c068e26d08 1 parent a8e927e
@danmarsden danmarsden authored
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.