926411499f08031c94cddd85e3f010b68b54f3ab braney Wed May 11 11:57:47 2011 -0700 oops, had broken a form. All of this is going to change soon, but for demo at CSHL I need to fix it here diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index caf7446..1ce9eb7 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -317,53 +317,54 @@ } } void doMiddle(struct cart *theCart) /* Write header and body of html page. */ { cart = theCart; setUdcCacheDir(); if (cartVarExists(cart, hgHubDoAdd)) doAddPrivateHub(cart, NULL); else { cartWebStart(cart, NULL, pageTitle); checkForNewHub(cart); + printf("
\n", destUrl); + cartSaveSession(cart); + + cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); printf( "

Track data hubs are collections of tracks from outside of UCSC that can be imported into " "the Genome Browser. To import a public hub check the box in the list below. " "After import the hub will show up as a group of tracks with its own blue " "bar and label underneath the main browser graphic, and in the configure page.

\n" ); makeGenomePrint(); printf("

"); hgHubConnectPublic(); printf("Contact genome@soe.ucsc.edu to add a public hub.

\n"); puts("
"); hgHubConnectPrivate(); - makeNewHubButton(); puts("
"); - printf("\n", destUrl); - cartSaveSession(cart); - - cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); cgiMakeButton("Submit", "Use Selected Hubs"); puts("
"); + makeNewHubButton(); + } cartWebEnd(); } char *excludeVars[] = {"Submit", "submit", "hc_one_url", hgHubConnectCgiDestUrl, hgHubDoAdd, hgHubDataText, NULL}; int main(int argc, char *argv[]) /* Process command line. */ { oldVars = hashNew(10); cgiSpoof(&argc, argv); cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars); return 0; }