e308eeacdb7af83831d703a64de9526bf26776f0
tdreszer
  Tue Feb 8 20:13:02 2011 -0800
Fixed some supportColors bugs in dd checklist
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index 44aa311..38e094e 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -3527,31 +3527,31 @@
     if(count == 1)
         printf("<B>Filter by %s</B> (select multiple items - %s)",filterBy->title,FILTERBY_HELP_LINK);
     else
         printf("<B>%s</B>",filterBy->title);
 
     //if (onOneLine && count > 1) // NOTE: onOneLine doesn't work because filterBy with multiple selected will align above title!
         printf("<BR>\n");
     //else
     //    printf(":\n");
     // TODO: Scroll long lists
     //#define FILTER_COMPOSITE_OPEN_SIZE 16
     // TODO: columnCount (Number of filterBoxes per row) should be configurable through tdb setting
     #define FILTER_BY_FORMAT "<SELECT id='fbc%d' name='%s.filterBy.%s' multiple style='display: none;' class='filterComp filterBy'><BR>\n"
     printf(FILTER_BY_FORMAT,ix,tdb->track,filterBy->column);
     ix++;
-    printf("<OPTION%s>All</OPTION>\n",(filterBy->slChoices == NULL || slNameInList(filterBy->slChoices,"All")?" SELECTED":"") );
+    printf("<OPTION%s%s>All</OPTION>\n",(filterBy->slChoices == NULL || slNameInList(filterBy->slChoices,"All")?" SELECTED":""),(filterBy->colorFollows?" style='color: #000000;'":"") );
     struct slName *slValue;
     if(filterBy->useIndex)
         {
         int ix=1;
         for(slValue=filterBy->slValues;slValue!=NULL;slValue=slValue->next,ix++)
             {
             char varName[32];
             safef(varName, sizeof(varName), "%d",ix);
             char *name = strSwapChar(cloneString(slValue->name),'_',' ');
             printf("<OPTION");
             if (filterBy->slChoices != NULL && slNameInList(filterBy->slChoices,varName))
                 printf(" SELECTED");
             printf(" value='%s'",varName);
             if (filterBy->colorFollows)
                 printf(" style='color: %s;'",slValue->name + strlen(slValue->name)+1);