0f65d587c9f0c85534dd664b41ba46f229e7205f
kent
Sat Mar 7 20:06:23 2015 -0800
Putting in but then ifdefing out some watermark code that looked nice, but left the word 'filter' printed all over the cart. Will try and fix soon. Wordsmithing one line of instructions a little.
diff --git src/hg/lib/tablesTables.c src/hg/lib/tablesTables.c
index fc3efbf..517e140 100644
--- src/hg/lib/tablesTables.c
+++ src/hg/lib/tablesTables.c
@@ -31,57 +31,69 @@
static void showTableFilterInstructionsEtc(struct fieldedTable *table,
char *itemPlural, struct fieldedTableSegment *largerContext)
/* Print instructional text, and basic summary info on who passes filter, and a submit
* button just in case user needs it */
{
/* Print info on matching */
int matchCount = slCount(table->rowList);
if (largerContext != NULL) // Need to page?
matchCount = largerContext->tableSize;
printf(" %d %s found. ", matchCount, itemPlural);
cgiMakeButton("submit", "update");
printf("
\n");
-printf("First row of table below, above labels, can be used to filter individual fields. ");
-printf("Wildcard * and ? characters are allowed in text fields. ");
+printf("First row of table below can filter. ");
+printf("Wildcard * and ? characters are allowed in text filters. ");
printf(">min or <max, is allowed in numerical fields.
\n");
}
static void printSuggestScript(char *id, struct slName *suggestList)
/* Print out a little javascript to wrap auto-suggester around control with given ID */
{
printf("\n");
}
+static void printWatermark(char *id, char *watermark)
+/* Print light text filter prompt as watermark. */
+{
+#ifdef SOON
+printf("\n");
+#endif /* SOON */
+}
+
static void showTableFilterControlRow(struct fieldedTable *table, struct cart *cart,
char *varPrefix, int maxLenField, struct hash *suggestHash)
/* Assuming we are in table already drow control row.
* The suggestHash is keyed by field name. If something is there we'll assume
* it's value is slName list of suggestion values */
{
printf("