a329af151d9cabf8d45af6de53e14a37779cae25
braney
  Wed Nov 28 13:27:17 2012 -0800
fix a problem in the table browser when track hubs have tables with dots in them
diff --git src/hg/hgTables/mainPage.c src/hg/hgTables/mainPage.c
index 5b83a8f..8a4a0aa 100644
--- src/hg/hgTables/mainPage.c
+++ src/hg/hgTables/mainPage.c
@@ -614,31 +614,31 @@
         }
     hOnClickButton("document.customTrackForm.submit();return false;",
                    hasCustomTracks ? CT_MANAGE_BUTTON_LABEL : CT_ADD_BUTTON_LABEL);
 
     hPrintf(" ");
     if (hubConnectTableExists())
 	hOnClickButton("document.trackHubForm.submit();return false;", "track hubs");
 
     hPrintf("</TD></TR>\n");
     }
 
 /* Print table line. */
     {
     hPrintf("<TR><TD>");
     curTable = showTableField(curTrack, hgtaTable, TRUE);
-    if (strchr(curTable, '.') == NULL)  /* In same database */
+    if (isHubTrack(curTable) || (strchr(curTable, '.') == NULL))  /* In same database */
         {
         hti = getHti(database, curTable, conn);
         isPositional = htiIsPositional(hti);
         }
     isBam = isBamTable( curTable);
     isVcf = isVcfTable( curTable);
     isWig = isWiggle(database, curTable);
     if (isBigWigTable(curTable))
         {
         isPositional = TRUE;
         isWig = TRUE;
         }
     isMaf = isMafTable(database, curTrack, curTable);
     isBedGr = isBedGraph(curTable);
     isArray = isMicroarray(curTrack, curTable);