MCPcopy Create free account
hub / github.com/chigraph/chigraph / toggleLevel

Function toggleLevel

docs/dynsections.js:28–47  ·  view source on GitHub ↗
(level)

Source from the content-addressed store, hash-verified

26}
27
28function toggleLevel(level)
29{
30 $('table.directory tr').each(function() {
31 var l = this.id.split('_').length-1;
32 var i = $('#img'+this.id.substring(3));
33 var a = $('#arr'+this.id.substring(3));
34 if (l<level+1) {
35 i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
36 a.html('&#9660;');
37 $(this).show();
38 } else if (l==level+1) {
39 i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
40 a.html('&#9658;');
41 $(this).show();
42 } else {
43 $(this).hide();
44 }
45 });
46 updateStripes();
47}
48
49function toggleFolder(id)
50{

Callers

nothing calls this directly

Calls 2

updateStripesFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected