e2b2a906fdde9ae81b6d5e4ac3642d0a5c604005
braney
Fri May 10 13:42:13 2019 -0700
make Advanced filter think blue and underlined. Also, only appear if
we're bigBed filtering
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index a38fb62..fc58b33 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -3945,36 +3945,39 @@
filterBy_t *filterBySet, boolean onOneLine,
char *filterTypeTitle, char *selectIdPrefix, char *allLabel, char *prefix)
// Does the UI for a list of filterBy structure for either filterBy or highlightBy controls
{
if (filterBySet == NULL)
return;
#define FILTERBY_HELP_LINK "help"
int count = slCount(filterBySet);
if (count == 1)
puts("
");
else
printf("%s items by: (select multiple categories and items - %s)"
"\n",filterTypeTitle,FILTERBY_HELP_LINK);
+if (tdbIsBigBed(tdb))
+ {
char varName[1024];
safef(varName, sizeof(varName), "%s.doAdvanced", tdb->track);
puts(" ");
-printf("%s
" ,varName,"Advanced ");
+ printf("%s
" ,varName,"Advanced ");
printf("
");
jsInlineF("$(function () { advancedSearchOnChange('%s'); });\n", varName);
+ }
filterBy_t *filterBy = NULL;
if (cartOptionalString(cart, "ajax") == NULL)
{
webIncludeResourceFile("ui.dropdownchecklist.css");
jsIncludeFile("ui.dropdownchecklist.js",NULL);
jsIncludeFile("ddcl.js",NULL);
}
int ix=0;
for(filterBy = filterBySet;filterBy != NULL; filterBy = filterBy->next, ix++)
{
char settingString[4096];
safef(settingString, sizeof settingString, "%s%s", filterBy->column, FILTER_TYPE_NAME);