treeTable.js
2.7 KB
/*
* jQuery treeTable Plugin 2.3.0
* http://ludo.cubicphuse.nl/jquery-plugins/treeTable/
*
* Copyright 2010, Ludo van den Boom
* Dual licensed under the MIT or GPL Version 2 licenses.
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4($){8 5;8 D;$.d.r=4(Y){5=$.1t({},$.d.r.Z,Y);7 3.h(4(){$(3).k("r").1A("T U").h(4(){6(!5.H||$(3)[0].Q.1y(5.p)==-1){6(13(D)){D=V($($(3).v("w")[5.t]).1d(\'x-18\'),10)}A($(3))}S 6(5.N=="m"){3.l.11="12"}})})};$.d.r.Z={p:"1z-1j-",R:1i,H:1k,g:19,N:"m",t:0};$.d.E=4(){$(3).k("m");n($(3)).h(4(){6(!$(3).j("m")){$(3).E()}3.l.11="12"});7 3};$.d.s=4(){$(3).G("m").k("q");n($(3)).h(4(){A($(3));6($(3).1o(".q.c")){$(3).s()}$(3).X()});7 3};$.d.1g=4(){$(u($(3)).B()).h(4(){A($(3));$(3).s().X()});7 3};$.d.1b=4(i){8 2=$(3);8 c=O(2);8 W=$.1a(u($(i)),4(a){7 a.b});6($.1f(2[0].b,W)==-1&&(!c||(i.b!=c[0].b))&&i.b!=2[0].b){g(2,u(2).y*5.g*-1);6(c){2.G(5.p+c[0].b)}2.k(5.p+i.b);J(2,i);g(2,u(2).y*5.g)}7 3};$.d.B=4(){7 3.1m(3.1E().B(),1p)};$.d.P=4(){6($(3).j("m")){$(3).s()}S{$(3).G("q").E()}7 3};4 u(2){8 C=[];1x(2=O(2)){C[C.y]=2[0]}7 C};4 n(2){7 $("1r.r T U."+5.p+2[0].b)};4 I(2){8 o=V(2[0].l.o,10);7(13(o))?D:o}4 g(2,M){8 f=$(2.v("w")[5.t]);f[0].l.o=I(f)+M+"K";n(2).h(4(){g($(3),M)})};4 A(2){6(!2.j("15")){2.k("15");8 L=n(2);6(!2.j("c")&&L.y>0){2.k("c")}6(2.j("c")){8 f=$(2.v("w")[5.t]);8 x=I(f)+5.g;L.h(4(){$(3).v("w")[5.t].l.o=x+"K"});6(5.H){f.1D(\'<14 l="x-18: \'+5.g+\'K" 1C="16"></14>\');$(f[0].1u).17(4(){2.P()});6(5.R){f[0].l.1l="1h";$(f).17(4(e){6(e.1B.Q!=\'16\'){2.P()}})}6(!(2.j("q")||2.j("m"))){2.k(5.N)}6(2.j("q")){2.s()}}}}};4 J(2,i){2.1w(i);n(2).B().h(4(){J($(3),2[0])})};4 O(2){8 z=2[0].Q.1q(\' \');1e(F 1v z){6(z[F].1c(5.p)){7 $("#"+z[F].1s(9))}}}})(1n);',62,103,'||node|this|function|options|if|return|var|||id|parent|fn||cell|indent|each|destination|hasClass|addClass|style|collapsed|childrenOf|paddingLeft|childPrefix|expanded|treeTable|expand|treeColumn|ancestorsOf|children|td|padding|length|classNames|initialize|reverse|ancestors|defaultPaddingLeft|collapse|key|removeClass|expandable|getPaddingLeft|move|px|childNodes|value|initialState|parentOf|toggleBranch|className|clickableNodeNames|else|tbody|tr|parseInt|ancestorNames|show|opts|defaults||display|none|isNaN|span|initialized|expander|click|left||map|appendBranchTo|match|css|for|inArray|reveal|pointer|false|of|true|cursor|pushStack|jQuery|is|arguments|split|table|substring|extend|firstChild|in|insertAfter|while|search|child|find|target|class|prepend|get'.split('|'),0,{}))