2a60d6454cf820624aa9b809c6c44ad460d2ab56
galt
Thu Sep 24 12:22:19 2015 -0700
Reducing cartReset delay from 2 seconds to 1 second, and its corresponding message. Fixes #8949.
diff --git src/hg/cartReset/cartReset.c src/hg/cartReset/cartReset.c
index 78d7807..056c78f 100644
--- src/hg/cartReset/cartReset.c
+++ src/hg/cartReset/cartReset.c
@@ -9,37 +9,37 @@
#include "htmshell.h"
#include "hui.h"
#include "cart.h"
static char *defaultDestination = "../cgi-bin/hgGateway";
void doMiddle()
/* cartReset - Reset cart. */
{
char *destination = cgiUsualString("destination", defaultDestination);
cartResetInDb(hUserCookie());
printf("Your settings are now reset to defaults.
");
-printf("You will be automatically redirected to the gateway page in 2 seconds,\n"
+printf("You will be automatically redirected to the gateway page in 1 second,\n"
" or you can
click here to continue.\n",
destination);
}
int main(int argc, char *argv[])
/* Process command line. */
{
long enteredMainTime = clock1000();
struct dyString *headText = newDyString(512);
char *destination = cgiUsualString("destination", defaultDestination);
dyStringPrintf(headText,
- ""
+ ""
""
""
,destination);
htmShellWithHead("Reset Cart", headText->string, doMiddle, NULL);
dyStringFree(&headText);
cgiExitTime("cartReset", enteredMainTime);
return 0;
}