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

Function toggleSyncButton

Documentation/ClassDetails/navtree.js:484–496  ·  view source on GitHub ↗
(relpath)

Source from the content-addressed store, hash-verified

482}
483
484function toggleSyncButton(relpath)
485{
486 var navSync = $('#nav-sync');
487 if (navSync.hasClass('sync')) {
488 navSync.removeClass('sync');
489 showSyncOff(navSync,relpath);
490 storeLink(stripPath2(pathName())+hashUrl());
491 } else {
492 navSync.addClass('sync');
493 showSyncOn(navSync,relpath);
494 deleteLink();
495 }
496}
497
498function initNavTree(toroot,relpath)
499{

Callers 1

initNavTreeFunction · 0.85

Calls 7

showSyncOffFunction · 0.85
storeLinkFunction · 0.85
stripPath2Function · 0.85
pathNameFunction · 0.85
hashUrlFunction · 0.85
showSyncOnFunction · 0.85
deleteLinkFunction · 0.85

Tested by

no test coverage detected