d147153dbb70eb9018b248543b6f39dde939076a tdreszer Fri Oct 7 16:52:46 2011 -0700 Another set of fixes propted by going through all of hg19 again and another 7 assemblies from different species and clades. diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index 41b959c..8723fdd 100644 --- src/hg/hgTracks/imageV2.c +++ src/hg/hgTracks/imageV2.c @@ -282,31 +282,33 @@ jsonHashAddString(ele, "parentTrack", parentTdb->track); jsonHashAddString(ele, "parentLabel", parentTdb->shortLabel); if (kindOfChild != kocFolderContent && !track->canPack) { jsonHashAddNumber(ele, "shouldPack", 0); // default vis is full, but pack is an option track->canPack = parentTdb->canPack; } } // XXXX really s/d be numChildren jsonHashAddNumber(ele, "hasChildren", slCount(track->tdb->subtracks)); // Configuring? int cfgByPopup = configurableByPopup(track->tdb,0); -if (!configurable || track->hasUi == FALSE || cfgByPopup == 0) +if (!configurable +|| track->hasUi == FALSE +|| (cfgByPopup == 0 && tdbIsCompositeSubtrack(track->tdb))) jsonHashAddString(ele, "configureBy", "none"); else if (cfgByPopup < 0) jsonHashAddString(ele, "configureBy", "clickThrough"); else jsonHashAddString(ele, "configureBy", "popup"); // Remote access by URL? if (sameWord(track->tdb->type, "remote") && trackDbSetting(track->tdb, "url") != NULL) jsonHashAddString(ele, "url", trackDbSetting(track->tdb, "url")); // Close with some standard vars jsonHashAddString(ele, "shortLabel", track->shortLabel); jsonHashAddString(ele, "longLabel", track->longLabel); jsonHashAddNumber(ele, "canPack", track->canPack);