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("\n", hub->id);
+ "class=\"hubDisconnectButton\" type=\"button\" value=\"Disconnect\">\n", hub->id);
ourCellEnd();
}
else
{
// give people a chance to clear the error
ourCellStart();
printf(
"\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(" List restricted by search terms : %s\n", hubSearchTerms);
puts("\n");
+ "class=\"hubField\" type=\"button\" value=\"Show All Hubs\">\n");
printf(" \n");
}
// if we have a trix file, draw the search box
if (haveTrixFile)
{
puts(" \n"
"\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("\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("\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(
""
, url);
ourCellEnd();