7705794c8be161cc0a4124253c04d6d1fe492a55 tdreszer Tue Jun 7 14:35:46 2011 -0700 Should do tr coloring by bgLevel class to make sure the metadata toggle background coloring works okay. diff --git src/hg/hgTracks/searchTracks.c src/hg/hgTracks/searchTracks.c index 3f2e8ca..b29f1ed 100644 --- src/hg/hgTracks/searchTracks.c +++ src/hg/hgTracks/searchTracks.c @@ -476,35 +476,35 @@ // Set up json for js functionality struct dyString *jsonTdbVars = NULL; int trackCount=0; boolean containerTrackCount = 0; struct slRef *ptr; while((ptr = slPopHead(&tracks))) { if(++trackCount > MAX_FOUND_TRACKS) break; struct track *track = (struct track *) ptr->val; jsonTdbSettingsBuild(&jsonTdbVars, track, FALSE); // FALSE: No configuration from track search if (tdbIsFolder(track->tdb)) // supertrack - hPrintf("\n",COLOR_TRACKLIST_LEVEL4); + hPrintf("\n"); else if (tdbIsContainer(track->tdb)) - hPrintf("\n",COLOR_TRACKLIST_LEVEL3); + hPrintf("\n"); else - hPrintf("\n",COLOR_TRACKLIST_LEVEL2); + hPrintf("\n"); hPrintf("\n"); // Determine visibility and checked state track->visibility = tdbVisLimitedByAncestors(cart, track->tdb, TRUE, TRUE); boolean checked = ( track->visibility != tvHide ); if(tdbIsContainerChild(track->tdb)) { checked = fourStateVisible(subtrackFourStateChecked(track->tdb,cart)); // Don't need all 4 states here. Visible=checked&&enabled checked = (checked && ( track->visibility != tvHide )); // Checked is only if subtrack level vis is also set! } // Setup the check box #define CB_HIDDEN_VAR "" if (tdbIsContainerChild(track->tdb) || tdbIsFolderContent(track->tdb)) // subtracks and folder children get "_sel" var. ("_sel" var is temporary on folder children) @@ -536,31 +536,31 @@ } //#define SHOW_PARENT_FOLDER #ifdef SHOW_PARENT_FOLDER else if (tdbIsContainerChild(track->tdb) || tdbIsFolderContent(track->tdb)) { struct trackDb *parentTdb = tdbIsContainerChild(track->tdb) ? tdbGetContainer(track->tdb) : tdbGetImmediateFolder(track->tdb); if (parentTdb != NULL) // Using href will not return to search tracks on submit hPrintf("  ", parentTdb->track); } #endif///def SHOW_PARENT_FOLDER hPrintf("\n"); // shortLabel has description popup and longLabel has "..." metadata hPrintf("%s\n", track->track, trackUrl(track->track, NULL), track->shortLabel); hPrintf("%s", track->longLabel); - compositeMetadataToggle(database, track->tdb, "...", TRUE, FALSE, tdbHash); + compositeMetadataToggle(database, track->tdb, NULL, TRUE, FALSE, tdbHash); hPrintf("\n"); } //hPrintf("\n"); // Closing view in browser button and foundTracks count hPrintf(""); hPrintf(""); hPrintf("    "); if(tracksFound >= ENOUGH_FOUND_TRACKS) { hPrintf("\n"); findTracksPageLinks(tracksFound,startFrom); hPrintf("\n"); } hPrintf("\n");