25367be1ea1cf374e19f3773f276cc6a0faa651d markd Thu May 16 10:43:16 2024 -0700 change "Reset filters" label to "Clear filters", as that is really what the button does RM 33727 diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 39ccf83..37a81db 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -4318,35 +4318,35 @@ void filterBySetCfgUiGuts(struct cart *cart, struct trackDb *tdb, filterBy_t *filterBySet, boolean onOneLine, char *filterTypeTitle, char *selectIdPrefix, char *allLabel, char *prefix, boolean isHighlight) // Does the UI for a list of filterBy structure for either filterBy or highlightBy controls // isHighlight controls the variable name for the cart { if (filterBySet == NULL) return; #define FILTERBY_HELP_LINK "<A HREF=\"../goldenPath/help/multiView.html\" TARGET=ucscHelp>Help</A>" int count = slCount(filterBySet); if (count == 1) puts("<TABLE class='trackUiFilterTable'><TR valign='top'>"); else - printf("<B>%s items by:</B> (select multiple categories and items - %s) <button id='filterResetButton'>Reset filters</button>" + printf("<B>%s items by:</B> (select multiple categories and items - %s) <button id='filterClearButton'>Clear filters</button>" "<TABLE class='trackUiFilterTable'><TR valign='bottom'>\n",filterTypeTitle,FILTERBY_HELP_LINK); jsInlineF("$(function () { " - "$('#filterResetButton').click( " + "$('#filterClearButton').click( " " function(ev) { ev.preventDefault(); " " $('.filterBy option[value=\"All\"]').removeAttr(\"selected\");" " $('.filterBy option[Value=\"All\"]').attr('selected', 'selected');" " $('.filterBy').dropdownchecklist('refresh'); " " }); " "});"); #ifdef ADVANCED_BUTTON if (tdbIsBigBed(tdb)) { char varName[1024]; safef(varName, sizeof(varName), "%s.doAdvanced", tdb->track); puts(" "); printf("<a id='%s' style='text-decoration: underline; color: #121E9A' title='Show advanced options..'>%s<img src='../images/downBlue.png'/></a>" ,varName,"Advanced "); printf("<BR>");