13e3bdbc4767d3dc557c9921e56d81c115767a32
kent
Mon Feb 1 16:11:15 2021 -0800
Adding some anchors and IDs so that when select a facet it will tend to come back to about where you were in the page rather than popping you back up to the top.
diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c
index 14518a0..437e8fa 100644
--- src/hg/lib/tablesTables.c
+++ src/hg/lib/tablesTables.c
@@ -527,124 +527,142 @@
printf("
\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",
returnUrl, varPrefix, op, varPrefix, field->fieldName, varPrefix, "", varPrefix,
- "See Fewer"
+ selfId, "See Fewer"
);
}
htmlPrintf("
\n");
}
printf("
\n");
// Clicking a checkbox is actually a click on the following link
jsInlineF(
"$(function () {\n"
" $('.ttFsCheckBox').click(function() {\n"
" this.nextSibling.nextSibling.click();\n"
" });\n"
"});\n");
}
// start right column, if there are two columns