src/hg/hgTrackUi/hgTrackUi.c 1.525

1.525 2010/05/13 21:39:19 kent
More noodling getting multiWig UI page to work, mostly by pretending to be composite.
Index: src/hg/hgTrackUi/hgTrackUi.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTrackUi/hgTrackUi.c,v
retrieving revision 1.524
retrieving revision 1.525
diff -b -B -U 4 -r1.524 -r1.525
--- src/hg/hgTrackUi/hgTrackUi.c	11 May 2010 01:43:26 -0000	1.524
+++ src/hg/hgTrackUi/hgTrackUi.c	13 May 2010 21:39:19 -0000	1.525
@@ -2400,13 +2400,18 @@
 if (tdbIsSuperTrack(tdb))
     {
     superTrackUi(tdb);
     }
-else if (tdb->subtracks)
-// else if (tdbIsComposite(tdb))  for the moment generalizing this to include other containers...
+else if (tdbIsComposite(tdb))  // for the moment generalizing this to include other containers...
     {
     hCompositeUi(database, cart, tdb, NULL, NULL, MAIN_FORM);
     }
+else if (trackDbLocalSetting(tdb, "container"))
+    {
+    /* For the moment, be a composite... */
+    tdbMarkAsComposite(tdb);
+    hCompositeUi(database, cart, tdb, NULL, NULL, MAIN_FORM);
+    }
 extraUiLinks(database,tdb);
 }
 
 
@@ -2470,9 +2475,11 @@
 printf(" ");
 cgiMakeButton("Submit", "Submit");
 
 if(tdbIsComposite(tdb))
+    {
     printf("\n&nbsp;&nbsp;<a href='#' onclick='setVarAndPostForm(\"%s\",\"1\",\"mainForm\"); return false;'>Reset to defaults</a>\n",setting);
+    }
 
 if (ct)
     {
     puts("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");