a582c17ed7b4049895cdfa148458173dae6f6cdc max Wed Nov 6 07:31:59 2024 -0800 Revert "forgot closing parentheses in previous commit" This reverts commit 5d977ca7c6fef8eaa84f3289bffa3405bf4e0209. diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index ad436b1..cb092c1 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9507,46 +9507,44 @@ "return imageV2.navigateButtonClick(this);"); hTextVar("dinkR", cartUsualString(cart, "dinkR", "2.0"), 3); hButtonWithOnClick("hgt.dinkRR", " > ", "Move end position to the right", "return imageV2.navigateButtonClick(this);"); hPrintf(""); hPrintf("\n"); } if( chromosomeColorsMade ) { hPrintf("Chromosome Color Key:
"); hPrintf("
\n"); } if (doPliColors) { - hPrintf("
"); hPrintf("gnomAD Loss-of-Function Constraint (LOEUF) Color Key:
"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("
< 0.1< 0.2< 0.3< 0.4< 0.5< 0.6< 0.7< 0.8< 0.9≥ 0.9No LOEUF score
\n"); - hPrintf("
"); // gnomadColorKeyLegend } if (showTrackControls) { /* Display viewing options for each track. */ /* Chuck: This is going to be wrapped in a table so that * the controls don't wrap around randomly */ hPrintf("\n"); // since this is all a huge table (which it shouldn't be), the only way to add whitespace between two rows is to add an empty row // since padding and margin are not allowed on table rows. (One day, we will remove this table) hPrintf("\n"); hPrintf("
\n"); @@ -10202,32 +10200,30 @@ // when most of the work has been completed. So the timer is only useful if what takes long is our own hgTracks javascript dyStringPrintf(dy, "var warnTimingTimer = setTimeout( function() { hgtWarnTiming(%f)}, %f);\n", maxTime, maxTime*1000); // In most cases, since the timer does not work well in practice, the following will always work: // once the page is ready, we check how long it took to load. dyStringPrintf(dy, "$(document).ready( function() { clearTimeout(warnTimingTimer); hgtWarnTiming(%f)});\n", maxTime); jsInline(dy->string); dyStringFree(&dy); } void tracksDisplay() /* Put up main tracks display. This routine handles zooming and * scrolling. */ { -setupTimeWarning(); - char titleVar[256]; char *oldPosition = cartUsualString(cart, "oldPosition", ""); boolean findNearest = cartUsualBoolean(cart, "findNearest", FALSE); cartRemove(cart, "findNearest"); boolean positionIsVirt = FALSE; position = getPositionFromCustomTracks(); if (NULL == position) { position = cartGetPosition(cart, database, &lastDbPosCart); if (sameOk(cgiOptionalString("position"), "lastDbPos")) { restoreSavedVirtPosition(); } if (startsWith(OLD_MULTI_REGION_CHROM, position)) @@ -10696,30 +10692,31 @@ cartSetDbPosition(cart, database, lastDbPosCart); if (cartUsualBoolean(cart, "hgt.psOutput", FALSE)) handlePostscript(); else doTrackForm(NULL, NULL); boolean gotExtTools = extToolsEnabled(); setupHotkeys(gotExtTools); if (gotExtTools) printExtMenuData(chromName); if (recTrackSetsEnabled()) printRecTrackSets(); if (exportedDataHubsEnabled()) printExportedDataHubs(database); +setupTimeWarning(); } static void chromInfoTotalRow(int count, long long total, boolean hasAlias) /* Make table row with total number of sequences and size from chromInfo. */ { cgiSimpleTableRowStart(); cgiSimpleTableFieldStart(); printf("Total: %d", count); cgiTableFieldEnd(); cgiTableFieldStartAlignRight(); printLongWithCommas(stdout, total); puts("  "); cgiTableFieldEnd(); if (hasAlias) {