0bdb0e42b90052c0ffd7c710ceb8d603cf27db48
galt
  Wed Jan 27 10:31:04 2016 -0800
Requested changes to multi-region config see # 16666 note 21

diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c
index 41d8352..4106bf5 100644
--- src/hg/hgTracks/config.c
+++ src/hg/hgTracks/config.c
@@ -571,52 +571,61 @@
 
 webStartWrapperDetailedNoArgs(cart, database, "", "", FALSE, FALSE, FALSE, FALSE);
 
 cartSaveSession(cart);
 
 
 hPrintf("<BR>\n");
 
 hTableStart();
 
 virtModeType = cartUsualString(cart, "virtModeType", virtModeType);
 
 hPrintf("<TR><TD>");
 cgiMakeRadioButton("virtModeType", "default", sameWord("default", virtModeType));
 hPrintf("</TD><TD>");
-hPrintf("Show single-chromosome view (default)");
+hPrintf("Exit multi-region mode");
 hPrintf("</TD></TR>\n");
 
 struct sqlConnection *conn = NULL;
 if (!trackHubDatabase(database))  // no db conn for assembly hubs 
     conn = hAllocConn(database);
 
 // Do we have a gene table for exonMostly?
 findBestEMGeneTable(trackList);
 if (emGeneTable)
     {
     hPrintf("<TR><TD>");
     cgiMakeRadioButton("virtModeType", "exonMostly", sameWord("exonMostly", virtModeType));
     hPrintf("</TD><TD>");
-    hPrintf("Show exons or ");
-    cgiMakeRadioButton("virtModeType", "geneMostly", sameWord("geneMostly", virtModeType));
-    hPrintf("genes using %s. &nbsp;&nbsp; Use padding of: ", emGeneTrack->shortLabel);
+    hPrintf("Show exons using %s. &nbsp;&nbsp; Use padding of: ", emGeneTrack->shortLabel);
     hIntVar("emPadding", cartUsualInt(cart, "emPadding", emPadding), 3);
     hPrintf(" bases.");
     hPrintf("</TD></TR>\n");
     }
 
+if (emGeneTable)
+    {
+    hPrintf("<TR><TD>");
+    cgiMakeRadioButton("virtModeType", "geneMostly", sameWord("geneMostly", virtModeType));
+    hPrintf("</TD><TD>");
+    hPrintf("Show genes using %s. &nbsp;&nbsp; Use padding of: ", emGeneTrack->shortLabel);
+    hIntVar("gmPadding", cartUsualInt(cart, "gmPadding", gmPadding), 3);
+    hPrintf(" bases.");
+    hPrintf("</TD></TR>\n");
+    }
+
 /* obsolete    
 if (conn && sqlTableExists(conn,"knownCanonical"))
     {
     hPrintf("<TR><TD>");
     cgiMakeRadioButton("virtModeType", "kcGenes", sameWord("kcGenes", virtModeType));
     hPrintf("</TD><TD>");
     hPrintf("Show gene regions genome-wide.");
     hPrintf("</TD></TR>\n");
     }
 */
 
 hPrintf("<TR><TD>");
 cgiMakeRadioButton("virtModeType", "customUrl", sameWord("customUrl", virtModeType));
 hPrintf("</TD><TD>");
 hPrintf("Custom regions from BED URL: ");