MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / toggleInherit

Function toggleInherit

Engine/lib/tinyxml/docs/dynsections.js:108–120  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

106
107
108function toggleInherit(id)
109{
110 var rows = $('tr.inherit.'+id);
111 var img = $('tr.inherit_header.'+id+' img');
112 var src = $(img).attr('src');
113 if (rows.filter(':first').is(':visible')===true) {
114 rows.css('display','none');
115 $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
116 } else {
117 rows.css('display','table-row'); // using show() causes jump in firefox
118 $(img).attr('src',src.substring(0,src.length-10)+'open.png');
119 }
120}
121/* @license-end */

Callers

nothing calls this directly

Calls 3

attrMethod · 0.80
filterMethod · 0.80
substringMethod · 0.80

Tested by

no test coverage detected