482e17639372073c44c32d26707a69b8132b3ba4 braney Fri Aug 5 18:05:55 2011 -0700 changes related to #4842 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 6400602..839775c 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -72,31 +72,30 @@ // count up the number of unlisted hubs we currently have int count = 0; struct hubConnectStatus *hub, *hubList = hubConnectStatusListFromCartAll(cart); for(hub = hubList; hub; hub = hub->next) { if (isHubUnlisted(hub)) count++; } if (count == 0) { // nothing to see here printf( "
clearing hub %s\n",url);
if (url != NULL)
hubClearStatus(url);
else
errAbort("must specify url in %s\n", hgHubDataText);
printf("Completed\n");
@@ -322,56 +317,63 @@
// here's a little form for the add new hub button
printf("");
// this the form for the disconnect hub button
printf("");
// ... and now the main form
+if (cartVarExists(cart, hgHubConnectCgiDestUrl))
+ destUrl = cartOptionalString(cart, hgHubConnectCgiDestUrl);
printf("");
cartWebEnd();
}
char *excludeVars[] = {"Submit", "submit", "hc_one_url",
- hgHubConnectCgiDestUrl, hgHubDoClear, hgHubDoDisconnect, hgHubDataText,
+ hgHubDoClear, hgHubDoDisconnect, hgHubDataText,
hgHubConnectRemakeTrackHub, NULL};
int main(int argc, char *argv[])
/* Process command line. */
{
oldVars = hashNew(10);
cgiSpoof(&argc, argv);
cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars);
return 0;
}