313531099a6e334521a493a0fa296b1738ee93a7
galt
Wed Feb 15 15:18:59 2017 -0800
Trying to make sure that js blocks end with a newline, and often a semi-colon before that. This causes trouble for short fragments of js that used to be able to skate by without it. Now that they are joined into larger blocks of js, the proper puncutation is required. refs #18538
diff --git src/hg/hgTracks/extTools.c src/hg/hgTracks/extTools.c
index 50c49d2..d7efdba 100644
--- src/hg/hgTracks/extTools.c
+++ src/hg/hgTracks/extTools.c
@@ -283,22 +283,22 @@
printf("\n", slp->name, val);
}
}
// a hidden submit button, see
// http://stackoverflow.com/questions/477691/submitting-a-form-by-pressing-enter-without-a-submit-button
if (debug)
printf("\n");
else if (!submitDone)
printf("\n");
printf("\n");
// a little javascript that clicks the submit button
if (!debug)
{
struct dyString *dy = dyStringNew(256);
- dyStringPrintf(dy, "document.getElementById(\"redirForm\").submit();");
+ dyStringPrintf(dy, "document.getElementById(\"redirForm\").submit();\n");
jsInline(dy->string);
dyStringFree(&dy);
}
jsInlineFinish();
printf("