d05639bbaee755e013b3abe1e7abfbfb6a3679f2 tdreszer Tue Feb 8 17:00:58 2011 -0800 Got dropdownchecklist to work within hgTracks popup cfg diff --git src/hg/lib/hui.c src/hg/lib/hui.c index acb7594..44aa311 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -3327,31 +3327,31 @@ struct slName *val = filterBy->slValues; for(;val!=NULL;val=val->next) { // chip the color off the end of value name color = strchr(val->name,'{'); if (color == NULL && filterBy->colorFollows) { warn("Using filterBy but only some values contain colors in form of value{#color} or value|label{#color}."); filterBy->colorFollows = FALSE; break; } else if (color != NULL && filterBy->colorFollows) { assert(*(color + 1) == '#'); *color++ = 0; // The color is found inside the filters->svValues as the next string beyond value or label - color = strchr(val->name,'}'); // There could be a closing '}' + color = strchr(color,'}'); // There could be a closing '}' if (color != NULL) *color = 0; } // now chip the label off the end of value name char * lab =strchr(val->name,'|'); if (lab == NULL && filterBy->valueAndLabel) { warn("Using filterBy but only some values contain labels in form of value|label."); filterBy->valueAndLabel = FALSE; break; } if (lab != NULL && filterBy->valueAndLabel) { *lab++ = 0; // The label is found inside the filters->svValues as the next string @@ -3537,46 +3537,52 @@ //#define FILTER_COMPOSITE_OPEN_SIZE 16 // TODO: columnCount (Number of filterBoxes per row) should be configurable through tdb setting #define FILTER_BY_FORMAT "\n"); // The following is needed to make msie scroll to selected option. printf("\n",tdb->track); puts(""); return; } #define COLOR_BG_DEFAULT_IX 0 #define COLOR_BG_ALTDEFAULT_IX 1