4cfe50ad2c533ab2b51e09dd1c50dc422c59223d kent Tue Jan 4 13:21:24 2022 -0800 Only show the number by the merge if not all are being merged diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c index 244ff46..4965c90 100644 --- src/hg/lib/tablesTables.c +++ src/hg/lib/tablesTables.c @@ -623,33 +623,36 @@ char selfId[256]; createSelfId(varPrefix, fieldName, NULL, selfId, sizeof(selfId)); htmlPrintf("<span style='float:right'>"); htmlPrintf("<a class='btn btn-secondary' href='%s" "&%s_facet_op=%s|none|" "&%s_facet_fieldName=%s|url|" "&%s_facet_fieldVal=%s|url|" "&%s_page=1#%s' " ">", returnUrl, varPrefix, op, varPrefix, fieldName, varPrefix, "", varPrefix, selfId); htmlPrintf("%s", op); if (field != NULL && sameString(op, "merge")) { + if (!field->allSelected) + { int selectedFieldCount = facetFieldCountSelected(field); htmlPrintf(" %d", selectedFieldCount); } + } htmlPrintf("</a></span>"); } /* CLose up facet field label line */ htmlPrintf("</h6><dl>\n"); if (field != NULL) { struct facetVal *val; if (!field->allSelected) // add reset facet link { char *op = "reset"; htmlPrintf("<dd><a class='btn btn-secondary' href='%s" "&%s_facet_op=%s|url|" "&%s_facet_fieldName=%s|url|"