d6185f9d383e5229b4b72b4225daf71077dfbf38 braney Fri Aug 26 11:12:26 2011 -0700 take out the code that tried to guess the correct tab to be highlighted. Greg added Javascript code to remember the last tab, which works better #4912 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index f50933d..d2205fc 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -414,38 +414,30 @@ "</ul> "); hgHubConnectPublic(); hgHubConnectUnlisted(); printf("</div>"); printf("<div class=\"tabFooter\">"); cgiMakeButton("Submit", "Load Selected Hubs"); char *emailAddress = cfgOptionDefault("hub.emailAddress","genome@soe.ucsc.edu"); printf("<span class=\"small\">" "Contact <A HREF=\"mailto:%s\">%s</A> to add a public hub." "</span>\n", emailAddress,emailAddress); printf("</div>"); -if ((newId != 0) || gotDisconnect) // make MyHubs the default tab - { - printf("<script type='text/javascript'>\n "); - printf("var $tabs = $('#tabs').tabs();\n"); - printf(" $tabs.tabs('select',1);\n"); - printf("</script>\n"); - } - cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); printf("</div>\n"); puts("</FORM>"); cartWebEnd(); } char *excludeVars[] = {"Submit", "submit", "hc_one_url", hgHubDoReset, hgHubDoClear, hgHubDoDisconnect, hgHubDataText, hgHubConnectRemakeTrackHub, NULL}; int main(int argc, char *argv[]) /* Process command line. */ { oldVars = hashNew(10);