ff60f503c3191841cd7b69d329c109043a238ec9 tdreszer Thu Jun 23 14:36:50 2011 -0700 Added support for CSS styles in filterBy drop downs. While this has iffy support in old DDCL, the jquery upgrade should be able to make use of this CSS style. diff --git src/hg/inc/hui.h src/hg/inc/hui.h index ee48f7f..bfb6f81 100644 --- src/hg/inc/hui.h +++ src/hg/inc/hui.h @@ -1133,31 +1133,32 @@ void sortTdbItemsAndUpdatePriorities(sortableTdbItem **items); // sort tdb items in list and then update priorities of item tdbs void sortableTdbItemsFree(sortableTdbItem **items); // Frees all memory associated with a list of sortable tdb items #define FILTER_BY "filterBy" typedef struct _filterBy { // A single filterBy set (from trackDb.ra filterBy column:Title=value,value [column:Title=value|label,value|label,value|label]) struct _filterBy *next; // SL list char*column; // field that will be filtered on char*title; // Title that User sees char*htmlName; // Name used in HTML/CGI boolean useIndex; // The returned values should be indexes boolean valueAndLabel; // If values list is value|label, then label is shown to the user - boolean colorFollows; // If values list is value|label{#color, then bg color follows value and label + boolean styleFollows; // style settings can follow like value|label[background-color:#660000] + // legacy like value|label{#AA0000} is a just the style='color... that follows struct slName *slValues; // Values that can be filtered on (All is always implied) struct slName *slChoices; // Values that have been chosen } filterBy_t; filterBy_t *filterBySetGet(struct trackDb *tdb, struct cart *cart, char *name); /* Gets one or more "filterBy" settings (ClosestToHome). returns NULL if not found */ void filterBySetFree(filterBy_t **filterBySet); /* Free a set of filterBy structs */ char *filterBySetClause(filterBy_t *filterBySet); /* returns the "column1 in (...) and column2 in (...)" clause for a set of filterBy structs */ void filterBySetCfgUi(struct trackDb *tdb, filterBy_t *filterBySet, boolean onOneLine); /* Does the UI for a list of filterBy structure */