85b69d6ab5a3316fa2576a446cc5c55d86aa0d52 braney Fri Aug 18 17:02:02 2023 -0700 all users to specify the label for the field that controls squishyPack diff --git src/hg/lib/hui.c src/hg/lib/hui.c index f371344..b87c861 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -5915,33 +5915,36 @@ //char *style = option ? "display:block" : "display:none"; //printf("<DIV ID=\"snakeGraphOptions\" STYLE=\"%s\">\n", style); //printf("</DIV>\n\n"); jsInlineF("$(\"input[name='%s']\").click( function() { $('#snakeGraphOptions').toggle();} );\n" , varName); // XSS FILTER? } void squishyPackOption(struct cart *cart, char *name, char *title, struct trackDb *tdb) /* let the user choose to see the track in wiggle mode */ { char option[256]; char *field = trackDbSetting(tdb, "squishyPackField"); if (field == NULL) return; +char *fieldLabel = trackDbSetting(tdb, "squishyPackLabel"); +if (fieldLabel == NULL) + fieldLabel = field; double squishyPackPoint = cartOrTdbDouble(cart, tdb, "squishyPackPoint", 999); -printf("<BR><B>Squish items that have a %s value that is greater or equal to </B> ", field); +printf("<BR><B><B>Reduce the height of transcripts (squish) that have a %s greater or equal to </B> ", fieldLabel); safef(option, sizeof(option), "%s.%s", name, "squishyPackPoint" ); cgiMakeDoubleVarWithLimits(option, squishyPackPoint, "Range min", 0, NO_VALUE, NO_VALUE); } void wigOption(struct cart *cart, char *name, char *title, struct trackDb *tdb) /* let the user choose to see the track in wiggle mode */ { printf("<BR><BR><B>Display data as a density graph:</B> "); boolean option = cartOrTdbBoolean(cart, tdb, "doWiggle", FALSE); char varName[1024]; safef(varName, sizeof(varName), "%s.doWiggle", name); cgiMakeCheckBox(varName, option); printf("<BR>\n");