fcb6dc8dfa166136193177c895ca181200850e4d max Mon Jan 19 06:02:31 2026 -0800 changing superTrack TrackUi quite a bit. Removing dropdowns and replacing them with buttons. Also adding buttons for setting all tracks or all visible tracks to a visibility. While at it, making a change to the js-query-library function (inversed the order of arguments) which was requested months ago by Brian, but I forgot to make the change after code review. Also shortening the "source data version" label to just "version". refs #36917. I changed the library function hTvDropDownClassVisOnlyAndExtra() rather than copying the code. This was because I was hesitant to copy/paste all this code into a second function, which would have been the only alternative, as the function cannot be reused as-is. So I modified the function to return the list of visibilities. It's never clear whether it's better to modify functions or copy/paste code. here, not breaking the function into smaller parts, so copy/pasting it, would risk requiring more future copy/pasted code. But the risk is to break existing tracks. diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 1381bf91e57..3235393329f 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9953,31 +9953,31 @@ } if (trackCount < 32) { // visible tracks not needed, set to display: none // we have to do this here because we need to account for super tracks // not being in the list until groupTrackListAddSuper has been called jsInline("let visTrs = document.querySelectorAll(\"[id^=visible-]\");\n" "let prev = visTrs[0].previousSibling;\n" "visTrs.forEach( (v) => v.style.display = \"none\");\n" "prev.style.display = \"none\";\n" ); } hashFree(&superHash); endControlGrid(&cg); - jsOnEventBySelector(".hgtButtonHideGroup", "click", "onHideAllGroupButtonClick(event)"); + jsOnEventBySelector("click", ".hgtButtonHideGroup", "onHideAllGroupButtonClick(event)"); } if (measureTiming) printTrackTiming(); hPrintf("\n"); } if (showTrackControls) hButton("hgt.refresh", "Refresh"); if (sameString(database, "wuhCor1")) { puts("

\n" "For information about this browser and related resources, see " "COVID-19 Research at UCSC.

");