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

Function toggleInherit

doc/html/dynsections.js:110–122  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

108
109
110function toggleInherit(id)
111{
112 var rows = $('tr.inherit.'+id);
113 var img = $('tr.inherit_header.'+id+' img');
114 var src = $(img).attr('src');
115 if (rows.filter(':first').is(':visible')===true) {
116 rows.css('display','none');
117 $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
118 } else {
119 rows.css('display','table-row'); // using show() causes jump in firefox
120 $(img).attr('src',src.substring(0,src.length-10)+'open.png');
121 }
122}
123
124var opened=true;
125// in case HTML_COLORSTYLE is LIGHT or DARK the vars will be replaced, so we write them out explicitly and use double quotes

Callers

nothing calls this directly

Calls 1

$Function · 0.85

Tested by

no test coverage detected