3fd7f765f0cdecf7248081b0ecbc1c421721d7b0 chmalee Mon Nov 13 14:48:17 2017 -0800 Fixing broken all button on DNase hypersensitivity track, refs #20308 diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 3c89af8..f28d8c1 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -7595,32 +7595,32 @@ (membersForAll->members[dimX] != NULL || membersForAll->members[dimY] != NULL ? "further ":""), (membersForAll->dimMax == dimA?"":"categories and "),FILTERBY_HELP_LINK); printf("\n"); char id[256]; char javascript[1024]; // Do All [+][-] buttons if (membersForAll->members[dimX] == NULL && membersForAll->members[dimY] == NULL) // No matrix { printf("\n"); } // Now make a filterComp box for each ABC dimension int dimIx=dimA; for (dimIx=dimA;dimIxdimMax;dimIx++) { printf("
All:
"); // TODO: Test when a real world case actually calls this. Currently no trackDb.ra cases exist #define PM_BUTTON_FILTER_COMP "" #define PM_BUTTON_FILTER_COMP_JS "waitOnFunction(filterCompositeSet,this,%s);return false;" #define MAKE_PM_BUTTON_FILTER_COMP(tf,fc,plmi) \ + safef(id, sizeof id, "btn_%s", (fc)); \ printf(PM_BUTTON_FILTER_COMP, id, (plmi)); \ - safef(id, sizeof id, "'btn_%s", (fc)); \ safef(javascript, sizeof javascript, PM_BUTTON_FILTER_COMP_JS, (tf)); \ jsOnEventById("click", id, javascript); MAKE_PM_BUTTON_FILTER_COMP("true", "plus_fc",'+') MAKE_PM_BUTTON_FILTER_COMP("false","minus_fc",'-') printf("
%s:
\n", labelWithVocabLinkForMultiples(db,parentTdb,membersForAll->members[dimIx]));