Diff for /rat/client/ratcode.js between versions 1.2 and 1.3

version 1.2, 2005/06/08 19:23:37 version 1.3, 2005/06/08 21:13:06
Line 1 Line 1
 <!--  <!--
 The LearningOnline Network  The LearningOnline Network
 Resource Assembly Tool  Resource Assembly Tool
   // $Id$
 //  //
 // Copyright Michigan State University Board of Trustees  // Copyright Michigan State University Board of Trustees
 //  //
Line 95  var data2=new Array(1024); Line 96  var data2=new Array(1024);
 var data3=new Array(1024);  var data3=new Array(1024);
 var data4=new Array(1024);  var data4=new Array(1024);
 var data5=new Array(1024);  var data5=new Array(1024);
   var data6=new Array(1024);
   
 var inf;  var inf;
 var srch;  var srch;
Line 244  function newcondition(content,type) { Line 246  function newcondition(content,type) {
 // ---------------------------------------------- Creates a new resource object  // ---------------------------------------------- Creates a new resource object
 function newresource(rid,cid,text,url,ext,type) {  function newresource(rid,cid,text,url,ext,type) {
    stored=0;     stored=0;
    objcont[addobj(rid,'b&'+rid+'&'+cid+':0:0:0')]=     var newidx=addobj(rid,'b&'+rid+'&'+cid+':0:0:0',url);
      objcont[newidx]=
     text+':'+url+':'+ext+':'+type+':res';      text+':'+url+':'+ext+':'+type+':res';
      return newidx;
 }  }
   
   
Line 464  function insertport (obj1,d,inout,linkob Line 468  function insertport (obj1,d,inout,linkob
   
 // ---------------------------- Make a new object and add it to the row content  // ---------------------------- Make a new object and add it to the row content
 // returns object number of generated object  // returns object number of generated object
 function addobj(kjid,objs) {  function addobj(kjid,objs,url) {
    stored=0;     stored=0;
    expense++;     expense++;
    if ((rowcont[kjid]!='') && (typeof(rowcont[kjid])!="undefined")) {      if ((rowcont[kjid]!='') && (typeof(rowcont[kjid])!="undefined")) { 
       rowcont[kjid]+=':';         rowcont[kjid]+=':'; 
    }     }
    rowcont[kjid]+=obj.length;     var newindex=obj.length;
    obj[obj.length]=objs;     if ((url!='') && (typeof(url)!="undefined")) {
    return obj.length-1;  // see if we have a zombie with that url
         for (oidx=0;oidx<objcont.length;oidx++) {
             if (typeof(objcont[oidx])!="undefined") {
                data6=objcont[oidx].split(':');
                if (data6[4]=='zombie') {
                   if (data6[1]==url) {
                      newindex=oidx;
                   }
                }
            }
         }
      }
      rowcont[kjid]+=newindex;
      obj[newindex]=objs;
      return newindex;
 }   } 
   
 // ---------------------------------------- Make horizontal connection for hrid  // ---------------------------------------- Make horizontal connection for hrid

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>