4275e302d217370b4eb756d45842f03e1ada9ae1 kate Tue Nov 8 11:50:38 2016 -0800 Changes to colorPatch in tissue table to better distinguish selected tissues: switch to white patch with tissue color border. Also fix to problem with select/deselect of tissues from SVG. refs #17369 diff --git src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c index 520f9c0..285e616 100644 --- src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c +++ src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c @@ -121,34 +121,36 @@ puts(""); puts(""); for (tis = tissues; tis != NULL; tis = tis->next) { if (tis->id < last) i = tis->id * 2; else i = (tis->id - last) * 2 + 1; tisTable[i] = tis; } boolean all = (hashNumEntries(selectedHash) == 0) ? TRUE : FALSE; for (i=0; iname) != NULL); - printf("" + printf("" ""); col++; if (col > cols-1) { puts("\n"); col = 0; } } puts("\n"); puts("
%s", - tis->color, + isChecked ? "" : "tissueNotSelectedColor", tis->color, + isChecked ? tis->color : 0xFFFFFF, tis->color, isChecked ? "tissueSelected" : "", tis->name, tis->description); + printf("", var, tis->name, isChecked ? "checked" : ""); puts("
"); char buf[512]; safef(buf, sizeof(buf), "%s%s.%s", cgiMultListShadowPrefix(), tdb->track, GTEX_TISSUE_SELECT); cgiMakeHiddenVar(buf, "0");