30b62c9240f4136e4b92c2606a786c2da8f77241 galt Fri Jan 31 16:40:57 2020 -0800 little more optimization diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c index 42dd8ec..89cb7cd 100644 --- src/hg/lib/tablesTables.c +++ src/hg/lib/tablesTables.c @@ -397,81 +397,72 @@ void (*addFunc)(int), char *initialWhere) /* Show a fielded table that can be sorted by clicking on column labels and optionally * that includes a row of filter controls above the labels . * The maxLenField is maximum character length of field before truncation with ... * Pass in 0 for no max */ { if (strchr(returnUrl, '?') == NULL) errAbort("Expecting returnUrl to include ? in showFieldedTable\nIt's %s", returnUrl); if (withFilters || visibleFacetList) showTableFilterInstructionsEtc(table, itemPlural, largerContext, addFunc, visibleFacetList); // Show top bar with quick-deselects for selected facet values // as well a clear restriction button that cleans out cdwFile_filter cart var. -boolean haveSelectedValues = FALSE; -// pre-scan to see if we will have any selected values. - { - struct slName *nameList = slNameListFromComma(visibleFacetList); - int f; - for (f = 0; f < table->fieldCount; ++f) - { - struct facetField *field = ffArray[f]; - if (slNameInListUseCase(nameList, field->fieldName)) // i.e. is this field a visible facet? - { - if (!field->allSelected) - { - haveSelectedValues = TRUE; - } - } - } - } -if (visibleFacetList && (!isEmpty(initialWhere) || haveSelectedValues)) +if (visibleFacetList) { - // left column - printf("