aee2779a0e183ca9f694ade76ac95b18aef49a55
max
Mon Feb 16 17:22:22 2026 -0800
replacing dense jquery code with more explicit code and also fixing the case Gerardo found when a track does not have pack mode, refs #36917
diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c
index 1cbaeb179ee..606fc5eaafb 100644
--- src/hg/hgTrackUi/hgTrackUi.c
+++ src/hg/hgTrackUi/hgTrackUi.c
@@ -2762,35 +2762,35 @@
printf("
\n");
printf("Apply visibility: \n");
printf("\n");
printInfoIcon("The 'Apply to all' button sets all tracks below to the visibility selected on this dropdown. The 'Apply to all visible' button sets this visibility on all tracks below that are not hidden.");
// First button: set all selectors that are not on 'hide' to the current value of the top select
printf("\n");
- jsOnEventById("click", "superVizApplyButton", "let newVal = $('#superSubViz').val(); $('#superTrackTable select').filter(function() { return $(this).val() !== 'hide'; }).val(newVal).trigger('change').removeClass('hiddenText').addClass('normalText'); ");
+ jsOnEventById("click", "superVizApplyButton", "superUiSetAllTracks(true)");
// Second button: set all selectors to the current value of the top select
printf(" \n");
- jsOnEventById("click", "superVizApplyAllButton", "let newVal = $('#superSubViz').val(); $('#superTrackTable select').val(newVal).trigger('change').removeClass('hiddenText').addClass('normalText');");
+ jsOnEventById("click", "superVizApplyAllButton", "superUiSetAllTracks()");
printf("