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/hgTables/genomeSpace.c src/hg/hgTables/genomeSpace.c
index 1c05c01..6448c0b 100644
--- src/hg/hgTables/genomeSpace.c
+++ src/hg/hgTables/genomeSpace.c
@@ -385,31 +385,31 @@
 	jsInlineReset();
 
 	htmlOpen("Uploading Output to GenomeSpace");
 
 	printf("Name: %s<br>\n", fileName);
 	printf("Size: %s<br>\n", nicenumber);
 	printf("Progress: %0d%%<br>\n", pctUploaded);
 	printf("<br>\n");
 
 	printf("<FORM ACTION=\"/cgi-bin/hgTables\" METHOD=GET>\n"
 	    "<INPUT TYPE=SUBMIT NAME=\"%s\" VALUE=\"Back\" >"
 	    "<INPUT TYPE=SUBMIT NAME=\"Refresh\" id='Refresh' VALUE=\"Refresh\">"
 	    "</FORM>\n"
 	    , hgtaDoMainPage);
 	jsOnEventById("click", "Refresh", "window.location=window.location;return false;");
-	jsInline("setTimeout(function(){location = location;},5000);");
+	jsInline("setTimeout(function(){location = location;},5000);\n");
 
 	htmlClose();
 	fflush(stdout);
 
 	lastPctUploaded = pctUploaded;
 
 	}
     }
 
 carefulClose(&f);
 
 char *responseCode = NULL;
 char *s3UploadResponse = parseResponse(sd, &responseCode);
 if (!sameString(responseCode, "200 OK"))
     errAbort("Amazon S3 Response: %s", responseCode);
@@ -635,31 +635,31 @@
 
 htmlOpen("Uploading Output to GenomeSpace");
 
 printf("Name: %s<br>\n", fileName);
 printf("Size: %s<br>\n", nicenumber);
 printf("Progress: 0%%<br>\n");
 printf("You can remain on this page and monitor upload progress.<br>\n");
 printf("Otherwise, feel free to continue working, and your output will appear in GenomeSpace when the upload is complete.<br>\n");
 printf("<br>\n");
 printf("<FORM ACTION=\"/cgi-bin/hgTables\" METHOD=GET>\n"
         "<INPUT TYPE=SUBMIT NAME=\"%s\" VALUE=\"Back\" >\n"
 	"<INPUT TYPE=SUBMIT NAME=\"Refresh\" id='Refresh' VALUE=\"Refresh\">"
 	"</FORM>\n"
 	, hgtaDoMainPage);
 jsOnEventById("click", "Refresh", "window.location=window.location;return false;");
-jsInline("setTimeout(function(){location = location;},5000);");
+jsInline("setTimeout(function(){location = location;},5000);\n");
 
 htmlClose();
 fflush(stdout);
 
 // MD5 COMPUTE
 unsigned char md5[16];       /* Keep the md5 checksum here. */
 md5ForFile(trashFileName,md5);
 char *hexMd5 = md5ToHex(md5);
 char *base64Md5 = base64Encode((char*)md5, 16);
 
 
 char *s3UploadUrl = gsUploadUrl(gsToken, user, fileName, fSize, base64Md5, contentType);
 
 char *s3Response = gsS3Upload(s3UploadUrl, trashFileName, fSize, base64Md5, hexMd5, contentType, TRUE, fileName);