MCPcopy Create free account
hub / github.com/d35ha/CallObfuscator / toggleFolder

Function toggleFolder

docs/html/dynsections.js:73–105  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

71}
72
73function toggleFolder(id)
74{
75 // the clicked row
76 var currentRow = $('#row_'+id);
77
78 // all rows after the clicked row
79 var rows = currentRow.nextAll("tr");
80
81 var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
82
83 // only match elements AFTER this one (can't hide elements before)
84 var childRows = rows.filter(function() { return this.id.match(re); });
85
86 // first row is visible we are HIDING
87 if (childRows.filter(':first').is(':visible')===true) {
88 // replace down arrow by right arrow for current row
89 var currentRowSpans = currentRow.find("span");
90 currentRowSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
91 currentRowSpans.filter(".arrow").html('►');
92 rows.filter("[id^=row_"+id+"]").hide(); // hide all children
93 } else { // we are SHOWING
94 // replace right arrow by down arrow for current row
95 var currentRowSpans = currentRow.find("span");
96 currentRowSpans.filter(".iconfclosed").removeClass("iconfclosed").addClass("iconfopen");
97 currentRowSpans.filter(".arrow").html('▼');
98 // replace down arrows by right arrows for child rows
99 var childRowsSpans = childRows.find("span");
100 childRowsSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
101 childRowsSpans.filter(".arrow").html('►');
102 childRows.show(); //show all children
103 }
104 updateStripes();
105}
106
107
108function toggleInherit(id)

Callers

nothing calls this directly

Calls 1

updateStripesFunction · 0.85

Tested by

no test coverage detected