29792e6f4b5efdc09e3fc37b162ac1e6b356cf75 markd Mon Mar 13 11:47:34 2017 -0700 add (filter activated) to labels for mRNA and EST tracks if filters are configured diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 7736345..6af94f8 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9741,15 +9741,23 @@ if (gotExtTools) printExtMenuData(); if (measureTiming) measureTime("Time at end of doMiddle, next up cart write"); if (cartOptionalString(cart, "udcTimeout")) { warn("The Genome Browser cart currently includes the \"udcTimeout\" string. " "While this is useful for debugging hubs, it may negatively impact " "performance. To clear this variable, click " "<A HREF='hgTracks?hgsid=%s|url|&udcTimeout=[]'>here</A>.",cartSessionId(cart)); } } +void labelTrackAsFiltered(struct track *tg) +/* add text to track long label to indicate filter is active */ +{ +char *oldLabel = tg->longLabel; +tg->longLabel = catTwoStrings(oldLabel, " (filter activated)"); +freeMem(oldLabel); +} +