d97534ce6ff21f6eb8e9fbd46827753ffba119b1 braney Thu Feb 8 15:49:49 2024 -0800 fix bug that crashes if hgt.trackImgOnly is not in cart diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index e58a7e1..3545d53 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -11129,31 +11129,31 @@ * tableHeaderForm element and un-hide it. Less obtrusive than a warn() message but still hard to miss. */ { jsInlineF("notifBoxSetup(\"hgTracks\", \"%s\", \"%s\");\n", msgId, msg); jsInlineF("notifBoxShow(\"hgTracks\", \"%s\");\n", msgId); } extern boolean issueBotWarning; void doMiddle(struct cart *theCart) /* Print the body of an html file. */ { cart = theCart; if (isEmpty(cartOptionalString(cart, "pix")) && !sameOk(cgiRequestMethod(NULL), "POST") && // page reload after POST would lose all vars - !cartBoolean(cart, "hgt.trackImgOnly")) // do not do this if we're hgRenderTracks = no Javascript + !cartUsualBoolean(cart, "hgt.trackImgOnly", FALSE)) // do not do this if we're hgRenderTracks = no Javascript { jsIncludeFile("jquery.js", NULL); jsIncludeFile("utils.js", NULL); jsInlineF("addPixAndReloadPage();"); return; } measureTiming = hPrintStatus() && isNotEmpty(cartOptionalString(cart, "measureTiming")); if (measureTiming) measureTime("Startup (bottleneck delay %d ms, not applied if under %d) ", botDelayMillis, hgBotDelayCurrWarnMs()) ; char *mouseOverEnabled = cfgOptionDefault("mouseOverEnabled", "on"); if (sameWordOk(mouseOverEnabled, "on")) { /* can not use mouseOver in any virtual mode */