/usr/share/rtpg-www/htdocs/js/jquery.treetable.min.js is in rtpg-www 0.2.11-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | (function(f){var i;var h;f.fn.treeTable=function(k){i=f.extend({},f.fn.treeTable.defaults,k);return this.each(function(){f(this).addClass("treeTable").find("tbody tr").each(function(){if(!i.expandable||f(this)[0].className.search(i.childPrefix)==-1){if(isNaN(h)){h=parseInt(f(f(this).children("td")[i.treeColumn]).css("padding-left"),10);}e(f(this));}else{if(i.initialState=="collapsed"){this.style.display="none";}}});});};f.fn.treeTable.defaults={childPrefix:"child-of-",clickableNodeNames:false,expandable:true,indent:19,initialState:"collapsed",treeColumn:0};f.fn.collapse=function(){f(this).addClass("collapsed");j(f(this)).each(function(){if(!f(this).hasClass("collapsed")){f(this).collapse();}this.style.display="none";});return this;};f.fn.expand=function(){f(this).removeClass("collapsed").addClass("expanded");j(f(this)).each(function(){e(f(this));if(f(this).is(".expanded.parent")){f(this).expand();}f(this).show();});return this;};f.fn.reveal=function(){f(a(f(this)).reverse()).each(function(){e(f(this));f(this).expand().show();});return this;};f.fn.appendBranchTo=function(n){var m=f(this);var k=c(m);var l=f.map(a(f(n)),function(o){return o.id;});if(f.inArray(m[0].id,l)==-1&&(!k||(n.id!=k[0].id))&&n.id!=m[0].id){g(m,a(m).length*i.indent*-1);if(k){m.removeClass(i.childPrefix+k[0].id);}m.addClass(i.childPrefix+n.id);b(m,n);g(m,a(m).length*i.indent);}return this;};f.fn.reverse=function(){return this.pushStack(this.get().reverse(),arguments);};f.fn.toggleBranch=function(){if(f(this).hasClass("collapsed")){f(this).expand();}else{f(this).removeClass("expanded").collapse();}return this;};function a(l){var k=[];while(l=c(l)){k[k.length]=l[0];}return k;}function j(k){return f("table.treeTable tbody tr."+i.childPrefix+k[0].id);}function d(l){var k=parseInt(l[0].style.paddingLeft,10);return(isNaN(k))?h:k;}function g(l,m){var k=f(l.children("td")[i.treeColumn]);k[0].style.paddingLeft=d(k)+m+"px";j(l).each(function(){g(f(this),m);});}function e(l){if(!l.hasClass("initialized")){l.addClass("initialized");var m=j(l);if(!l.hasClass("parent")&&m.length>0){l.addClass("parent");}if(l.hasClass("parent")){var k=f(l.children("td")[i.treeColumn]);var n=d(k)+i.indent;m.each(function(){f(this).children("td")[i.treeColumn].style.paddingLeft=n+"px";});if(i.expandable){k.prepend('<span style="margin-left: -'+i.indent+"px; padding-left: "+i.indent+'px" class="expander"></span>');f(k[0].firstChild).click(function(){l.toggleBranch();});if(i.clickableNodeNames){k[0].style.cursor="pointer";f(k).click(function(o){if(o.target.className!="expander"){l.toggleBranch();}});}if(!(l.hasClass("expanded")||l.hasClass("collapsed"))){l.addClass(i.initialState);}if(l.hasClass("expanded")){l.expand();}}}}}function b(k,l){k.insertAfter(l);j(k).reverse().each(function(){b(f(this),k[0]);});}function c(k){var l=k[0].className.split(" ");for(key in l){if(l[key].match(i.childPrefix)){return f("#"+l[key].substring(9));}}}})(jQuery);
|