Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-36800 SCORM: Fix Yui().use calls - thanks to Nancy Cheng for the fix
  • Loading branch information
danmarsden committed Feb 3, 2013
1 parent a8e927e commit 216e2e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/aicc.js.php
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/callback.js.php
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/scorm_12.js.php
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/scorm_13.js.php
Expand Up @@ -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 {
Expand Down

0 comments on commit 216e2e5

Please sign in to comment.