2ba572dc8bbe18b3398dcf17205dafdd52ab396a
braney
  Sat May 24 10:01:21 2014 -0700
updates to hgHubConnect to interface to make it less confusing.   Nowconnection and disconnection put you on the gateway page.

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index d74c04b..df5f1aa 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -5680,64 +5680,52 @@
 
 
 void resetVars()
 /* Reset vars except for position and database. */
 {
 static char *except[] = {"db", "position", NULL};
 char *cookieName = hUserCookie();
 char *sessionId = cgiOptionalString(cartSessionVarName());
 char *userId = findCookieData(cookieName);
 struct cart *oldCart = cartNew(userId, sessionId, NULL, NULL);
 cartRemoveExcept(oldCart, except);
 cartCheckout(&oldCart);
 cgiVarExcludeExcept(except);
 }
 
-static void addDataHubs(struct cart *cart)
-{
-hubCheckForNew(cart);
-cartSetString(cart, hgHubConnectRemakeTrackHub, "on");
-}
-
 void doMiddle(struct cart *theCart)
 /* Print the body of an html file.   */
 {
 hgBotDelay();
 char *debugTmp = NULL;
 /* Uncomment this to see parameters for debugging. */
 /* struct dyString *state = NULL; */
 /* Initialize layout and database. */
 cart = theCart;
 
 measureTiming = hPrintStatus() && isNotEmpty(cartOptionalString(cart, "measureTiming"));
 if (measureTiming)
     measureTime("Get cart of %d for user:%u session:%u", theCart->hash->elCount,
 	    theCart->userId, theCart->sessionId);
 /* #if 1 this to see parameters for debugging. */
 /* Be careful though, it breaks if custom track
  * is more than 4k */
 #if  0
 state = cgiUrlString();
 printf("State: %s\n", state->string);
 #endif
 
-/* check for new data/assembly hub */
-if (cartVarExists(cart, hgHubDataText))
-    {
-    addDataHubs(cart);
-    }
-
 getDbAndGenome(cart, &database, &organism, oldVars);
 
 protDbName = hPdbFromGdb(database);
 debugTmp = cartUsualString(cart, "hgDebug", "off");
 if(sameString(debugTmp, "on"))
     hgDebug = TRUE;
 else
     hgDebug = FALSE;
 
 if (hIsGisaidServer())
     {
     validateGisaidUser(cart);
     }
 
 int timeout = cartUsualInt(cart, "udcTimeout", 300);