MCPcopy Create free account
hub / github.com/NVIDIA/Dataset_Synthesizer / toggleInherit

Function toggleInherit

Documentation/ClassDetails/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
98
99$(document).ready(function() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected