MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / toggleLevel

Function toggleLevel

doc/html/dynsections.js:54–73  ·  view source on GitHub ↗
(level)

Source from the content-addressed store, hash-verified

52}
53
54function toggleLevel(level)
55{
56 $('table.directory tr').each(function() {
57 var l = this.id.split('_').length-1;
58 var i = $('#img'+this.id.substring(3));
59 var a = $('#arr'+this.id.substring(3));
60 if (l<level+1) {
61 i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
62 a.html('&#9660;');
63 $(this).show();
64 } else if (l==level+1) {
65 i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
66 a.html('&#9658;');
67 $(this).show();
68 } else {
69 $(this).hide();
70 }
71 });
72 updateStripes();
73}
74
75function toggleFolder(id)
76{

Callers

nothing calls this directly

Calls 2

$Function · 0.85
updateStripesFunction · 0.85

Tested by

no test coverage detected