5b1c8acf2b548dfdd06bbd45c02f2b61427e9aad
tdreszer
  Wed Jan 19 17:29:45 2011 -0800
Fix for redmine 2040 note 17.  Some track lists would not respond properly to List subtracks selected v. all radio button.
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index a61a4c4..0f306a8 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -3906,39 +3906,40 @@
     }
 else
     makeTopLink(parentTdb);
 
 // Now we can start in on the table of subtracks  It may be sortable and/or dragAndDroppable
 printf("\n<TABLE CELLSPACING='2' CELLPADDING='0' border='0'");
 dyStringClear(dyHtml);
 if (sortOrder != NULL)
     dyStringPrintf(dyHtml, "sortable");
 if (useDragAndDrop)
     {
     if (dyStringLen(dyHtml) > 0)
         dyStringAppendC(dyHtml,' ');
     dyStringPrintf(dyHtml, "tableWithDragAndDrop");
     }
+printf(" class='subtracks");
 if (dyStringLen(dyHtml) > 0)
     {
-    printf(" class='subtracks bglevel1 %s'",dyStringContents(dyHtml));
+    printf(" bglevel1 %s'",dyStringContents(dyHtml));
     colorIx = COLOR_BG_ALTDEFAULT_IX;
     }
 if (sortOrder != NULL)
-    puts("><THEAD class=sortable>");
+    puts("'><THEAD class=sortable>");
 else
-    puts("><THEAD>");
+    puts("'><THEAD>");
 
 boolean doColorPatch = trackDbSettingOn(parentTdb, "showSubtrackColorOnUi");
 int colspan = 3;
 if (sortOrder != NULL)
     colspan = sortOrder->count+2;
 if (doColorPatch)
     colspan += 1;
 int columnCount = 0;
 if (sortOrder != NULL)
     printf("<TR id=\"subtracksHeader\" class='sortable%s'>\n",useDragAndDrop?" nodrop nodrag":"");
 else
     {
     printf("<TR%s>",useDragAndDrop?" id='noDrag' class='nodrop nodrag'":"");
     // First table row contains the display "selected/visible" or "all" radio buttons
     // NOTE: list subtrack radio buttons are inside tracklist table header if there are no sort columns