From ee3c87bd8444acf01435dc70cf188f089836346a Mon Sep 17 00:00:00 2001 From: cap2501 Date: Sun, 27 Aug 2006 22:09:56 +0000 Subject: [PATCH] Fixes needed to work from cvs --- course/format/topicsajax/ajaxcourse-topics.js | 124 +++++++++--------- 1 file changed, 65 insertions(+), 59 deletions(-) diff --git a/course/format/topicsajax/ajaxcourse-topics.js b/course/format/topicsajax/ajaxcourse-topics.js index 270455aa65..12e0dea1dd 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