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

Function highlightNextRow

InteractiveHtmlBom/web/ibom.js:805–822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

803}
804
805function highlightNextRow() {
806 if (!currentHighlightedRowId) {
807 highlightHandlers[0].handler();
808 } else {
809 if (highlightHandlers.length > 1 &&
810 highlightHandlers[highlightHandlers.length - 1].id == currentHighlightedRowId) {
811 highlightHandlers[0].handler();
812 } else {
813 for (var i = 1; i < highlightHandlers.length; i++) {
814 if (highlightHandlers[i - 1].id == currentHighlightedRowId) {
815 highlightHandlers[i].handler();
816 break;
817 }
818 }
819 }
820 }
821 smoothScrollToRow(currentHighlightedRowId);
822}
823
824function populateBomTable() {
825 populateBomHeader();

Callers 1

ibom.jsFile · 0.85

Calls 1

smoothScrollToRowFunction · 0.85

Tested by

no test coverage detected