e93f7e382869fd6139dfa8f3eb0a9fcff98b7c62
larrym
Mon Aug 6 09:25:44 2012 -0700
remove "clear position" button and wordsmithing
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 7218def..5f77f83 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -5191,31 +5191,31 @@
char titleVar[256];
position = getPositionFromCustomTracks();
if (NULL == position)
{
position = cloneString(cartUsualString(cart, "position", NULL));
}
/* default if not set at all, as would happen if it came from a URL with no
* position. Otherwise tell them to go back to the gateway. Also recognize
* "default" as specifying the default position. */
if (((position == NULL) || sameString(position, "default"))
&& (defaultPosition != NULL))
position = cloneString(defaultPosition);
if (sameString(position, ""))
{
- hUserAbort("Please go back and enter a coordinate range or a search term in the \"position\" field.
For example: chr22:20100000-20200000.\n");
+ hUserAbort("Please go back and enter a coordinate range or a search term in the \"search term\" field.
For example: chr22:20100000-20200000.\n");
}
chromName = NULL;
winStart = 0;
if (isGenome(position) || NULL ==
(hgp = findGenomePos(database, position, &chromName, &winStart, &winEnd, cart)))
{
if (winStart == 0) /* number of positions found */
{
freeMem(position);
position = cloneString(cartUsualString(cart, "lastPosition", defaultPosition));
hgp = findGenomePos(database, position, &chromName, &winStart, &winEnd,cart);
if (hgp != NULL && position != defaultPosition)
cartSetString(cart, "position", position);
}