MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / toggleBomCheckbox

Function toggleBomCheckbox

InteractiveHtmlBom/web/ibom.js:1068–1078  ·  view source on GitHub ↗
(bomrowid, checkboxnum)

Source from the content-addressed store, hash-verified

1066}
1067
1068function toggleBomCheckbox(bomrowid, checkboxnum) {
1069 if (!bomrowid || checkboxnum > settings.checkboxes.length) {
1070 return;
1071 }
1072 var bomrow = document.getElementById(bomrowid);
1073 var childNum = checkboxnum + settings.columnOrder.indexOf("checkboxes");
1074 var checkbox = bomrow.childNodes[childNum].childNodes[0];
1075 checkbox.checked = !checkbox.checked;
1076 checkbox.indeterminate = false;
1077 checkbox.onchange();
1078}
1079
1080function checkBomCheckbox(bomrowid, checkboxname) {
1081 var checkboxnum = 0;

Callers 1

ibom.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected