f696e3739df240549d0ef2a172a13f7b4d2a8433
kent
Thu Jan 28 21:26:51 2021 -0800
Making facet_op be not hard coded
diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c
index ad19bd7..47a37c2 100644
--- src/hg/lib/tablesTables.c
+++ src/hg/lib/tablesTables.c
@@ -454,36 +454,36 @@
// Make a copy to not disturb the original order
struct facetVal *valListCopy = facetsClone(field->valList);
slSort(&valListCopy, facetValCmp);
for (val = valListCopy; val; val=val->next)
{
boolean specificallySelected = (val->selected && !field->allSelected);
if (specificallySelected)
{
char *op = "remove";
htmlDyStringPrintf(facetBar, "
\n");
}
else if (val->selectCount > 0)
{
++valuesNotShown;
}
}
// show "See More" link when facet has lots of values
if (valuesNotShown > 0)
{
char *op = "showAllValues";
htmlPrintf("
\n");
// Clicking a checkbox is actually a click on the following link
jsInlineF(
"$(function () {\n"
" $('.cdwFSCheckBox').click(function() {\n"
" this.nextSibling.nextSibling.click();\n"
" });\n"
"});\n");
}