All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.js.ReportLibrary.js.bak Maven / Gradle / Ivy

There is a newer version: 3.1.1
Show newest version
(function(jq){
  jq.fn.jqTreeTable=function(map, options){
    var opts = jq.extend({openImg:"",shutImg:"",leafImg:"",lastOpenImg:"",lastShutImg:"",lastLeafImg:"",vertLineImg:"",blankImg:"",collapse:false,column:0,striped:false,highlight:false,state:true},options),
    mapa=[],mapb=[],tid=this.attr("id"),collarr=[],
	  stripe=function(){
      //if(opts.striped){
  		  //$("#"+tid+" tr:visible").filter(":even").addClass("even").end().filter(":odd").removeClass("even");
      //}
	  },
    buildText = function(parno, preStr){//Recursively build up the text for the images that make it work
      var mp=mapa[parno], ro=0, pre="", pref, img;
      for (var y=0,yl=mp.length;y';
          pref = preStr + '';
          arguments.callee(ro, pref);
        }else{//it's a child
          img = (y==yl-1)? opts.lastLeafImg: opts.leafImg;//It's the last child, It's child will have a blank field behind it
          mapb[ro-1] = preStr + '';
        }
      }
    },
    expandKids = function(num, last){//Expands immediate children, and their uncollapsed children
      jq("#"+tid+num).attr("src", (last)? opts.lastOpenImg: opts.openImg);//
      for (var x=0, xl=mapa[num].length;x=0) {
	    	s+=n.length+2; //c=" treet1=;"
	      v=(c.substring(s,c.indexOf(';',s))).split("|");
	    }
	    return v||0;
  	},
    cset = function (n,v) {
  		jq.unique(v);
	  	document.cookie = n+"="+v.join("|")+";";
	  };
    for (var x=0,xl=map.length; xHide All';
  	else 
  		document.getElementById('divShow').innerHTML = 'Show All';
	}  
//JORGE'S MODIFICATION - FIN 





© 2015 - 2024 Weber Informatics LLC | Privacy Policy