45b6876c985d178387ebddb206d448c2fd5998ea
braney
  Tue Jun 3 11:47:19 2014 -0700
change "Delete Search Terms" to "Select All Hubs", add styles for theConnect and Disconnect buttons.

diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c
index f18e270..2181b0c 100644
--- src/hg/hgHubConnect/hgHubConnect.c
+++ src/hg/hgHubConnect/hgHubConnect.c
@@ -206,31 +206,31 @@
     if (count)
 	webPrintLinkTableNewRow();  // ends last row and starts a new one
     count++;
 
     // if there's an error message, we don't let people select it
     if (isEmpty(hub->errorMessage))
 	{
 	ourCellStart();
 	char hubName[32];
 	safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, hub->id);
 	if (cartUsualBoolean(cart, hubName, FALSE))
 	    printf("<input name=\"hubDisconnectButton\""
 		"onClick="
 		"\" document.disconnectHubForm.elements['hubId'].value= '%d';"
 		"document.disconnectHubForm.submit();return true;\" "
-		"class=\"hubField\" type=\"button\" value=\"Disconnect\">\n", hub->id);
+		"class=\"hubDisconnectButton\" type=\"button\" value=\"Disconnect\">\n", hub->id);
 	ourCellEnd();
 	}
     else
 	{
 	// give people a chance to clear the error 
 	ourCellStart();
 	printf(
 	"<input name=\"hubClearButton\""
 	    "onClick=\"document.resetHubForm.elements['hubUrl'].value='%s';"
 		"document.resetHubForm.submit();return true;\" "
 		"class=\"hubField\" type=\"button\" value=\"check hub\">\n"
 		, hub->hubUrl);
 	ourCellEnd();
 	}
     if (hub->trackHub != NULL)
@@ -309,31 +309,31 @@
 
 if (haveTrixFile && !isEmpty(hubSearchTerms))
     {
     strLower(hubSearchTerms);
     urlSearchHash = getUrlSearchHash(trixFile, hubSearchTerms);
     }
 
 // if we have search terms, put out the line telling the user so
 if (!isEmpty(hubSearchTerms))
     {
     printf("<BR>List restricted by search terms : %s\n", hubSearchTerms);
     puts("<input name=\"hubDeleteSearchButton\""
 	"onClick="
 	"\" document.searchHubForm.elements['hubSearchTerms'].value=\'\';"
 	"document.searchHubForm.submit();return true;\" "
-	"class=\"hubField\" type=\"button\" value=\"Delete Search Terms\">\n");
+	"class=\"hubField\" type=\"button\" value=\"Show All Hubs\">\n");
     printf("<BR>\n");
     }
 
 // if we have a trix file, draw the search box
 if (haveTrixFile)
     {
     puts("<input name=\"hubSearchTerms\" id=\"hubSearchTerms\" class=\"hubField\""
 	"type=\"text\" size=\"65\"> \n"
     "<input name=\"hubSearchButton\""
 	"onClick="
 	"\" document.searchHubForm.elements['hubSearchTerms'].value=hubSearchTerms.value;"
 	    "document.searchHubForm.submit();return true;\" "
 	    "class=\"hubField\" type=\"button\" value=\"Search Public Hubs\">\n");
     }
 
@@ -386,51 +386,51 @@
 
 	// allocate the hash to store hubUrl's
 	publicHash = newHash(5);
 	}
 
     if ((id != 0) && isEmpty(errorMessage)) 
 	{
 	ourCellStart();
 	char hubName[32];
 	safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, id);
 	if (cartUsualBoolean(cart, hubName, FALSE))
 	    printf("<input name=\"hubDisconnectButton\""
 		"onClick="
 		"\" document.disconnectHubForm.elements['hubId'].value= '%d';"
 		"document.disconnectHubForm.submit();return true;\" "
-		"class=\"hubField\" type=\"button\" value=\"Disconnect\">\n", id);
+		"class=\"hubDisconnectButton\" type=\"button\" value=\"Disconnect\">\n", id);
 	else
 	    {
 	    // get first name off of list of supported databases
 	    char * name = dbListNames->name;
 
 	    // if the name isn't currently loaded, we assume it's a hub
 	    if (!hDbExists(name))
 		{
 		char buffer[512];
 
 		safef(buffer, sizeof buffer, "hub_%d_%s",  id, name);
 		name = cloneString(buffer);
 		}
 
 	    printf("<input name=\"hubConnectButton\""
 	    "onClick="
 		"\" document.connectHubForm.elements['hubUrl'].value= '%s';"
 		"document.connectHubForm.elements['db'].value= '%s';"
 		"document.connectHubForm.submit();return true;\" "
-		"class=\"hubField\" type=\"button\" value=\"Connect\">\n", url,name);
+		"class=\"hubConnectButton\" type=\"button\" value=\"Connect\">\n", url,name);
 	    }
 
 	ourCellEnd();
 	}
     else if (!isEmpty(errorMessage))
 	{
 	// give user a chance to clear the error
 	ourCellStart();
 	printf(
 	"<input name=\"hubClearButton\""
 	    "onClick=\"document.resetHubForm.elements['hubUrl'].value='%s';"
 		"document.resetHubForm.submit();return true;\" "
 		"class=\"hubField\" type=\"button\" value=\"check hub\">"
 		, url);
 	ourCellEnd();