MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / toggleInherit

Function toggleInherit

doc/_static/api/dynsections.js:84–96  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

82
83
84function toggleInherit(id)
85{
86 var rows = $('tr.inherit.'+id);
87 var img = $('tr.inherit_header.'+id+' img');
88 var src = $(img).attr('src');
89 if (rows.filter(':first').is(':visible')===true) {
90 rows.css('display','none');
91 $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
92 } else {
93 rows.css('display','table-row'); // using show() causes jump in firefox
94 $(img).attr('src',src.substring(0,src.length-10)+'open.png');
95 }
96}
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected