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

Function highlightPreviousRow

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

Source from the content-addressed store, hash-verified

784}
785
786function highlightPreviousRow() {
787 if (!currentHighlightedRowId) {
788 highlightHandlers[highlightHandlers.length - 1].handler();
789 } else {
790 if (highlightHandlers.length > 1 &&
791 highlightHandlers[0].id == currentHighlightedRowId) {
792 highlightHandlers[highlightHandlers.length - 1].handler();
793 } else {
794 for (var i = 0; i < highlightHandlers.length - 1; i++) {
795 if (highlightHandlers[i + 1].id == currentHighlightedRowId) {
796 highlightHandlers[i].handler();
797 break;
798 }
799 }
800 }
801 }
802 smoothScrollToRow(currentHighlightedRowId);
803}
804
805function highlightNextRow() {
806 if (!currentHighlightedRowId) {

Callers 1

ibom.jsFile · 0.85

Calls 1

smoothScrollToRowFunction · 0.85

Tested by

no test coverage detected