diff --git a/course/format/topicsajax/ajaxcourse-topics.js b/course/format/topicsajax/ajaxcourse-topics.js index 270455aa658..12e0dea1dd4 100644 --- a/course/format/topicsajax/ajaxcourse-topics.js +++ b/course/format/topicsajax/ajaxcourse-topics.js @@ -7,21 +7,21 @@ document.getElementById('content').style.display='none'; //onload object for handling scripts on page load, this insurses they run in my order function onload_class(){ - this.scripts = new Array(); - this.debug = false; + this.scripts = new Array(); + this.debug = false; } onload_class.prototype.add = function(script){ - if(this.debug)YAHOO.log("onload.add - adding "+script,"junk"); - this.scripts[this.scripts.length] = script; - } - + if(this.debug)YAHOO.log("onload.add - adding "+script,"junk"); + this.scripts[this.scripts.length] = script; + } + onload_class.prototype.load = function(){ - var scriptcount = this.scripts.length; - if(this.debug)YAHOO.log("onload.load - loading "+scriptcount+" scripts","info"); - for(i=0;i