12947e6dc054b98b4bb372cf381b40169638aa65 chmalee Thu Jan 15 14:44:26 2026 -0800 Make ability to do hgc in popups on by default, still need the cart variable doHgcInPopUp (which also defaults to true) to control whether the popup actually shows up, refs #36953 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 0db3e91848d..a9b45b33969 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -10037,31 +10037,31 @@ hPrintf("</FORM>\n"); // this is the form for the disconnect hub button hPrintf("<FORM ACTION=\"%s\" NAME=\"disconnectHubForm\">\n", "../cgi-bin/hgTracks"); cgiMakeHiddenVar("hubId", ""); cgiMakeHiddenVar(hgHubDoDisconnect, "on"); cgiMakeHiddenVar(hgHubConnectRemakeTrackHub, "on"); cartSaveSession(cart); puts("</FORM>"); // put the track download interface behind hg.conf control if (cfgOptionBooleanDefault("showMouseovers", FALSE)) jsInline("var showMouseovers = true;\n"); // if the configure page allows hgc popups tell the javascript about it -if (cfgOptionBooleanDefault("canDoHgcInPopUp", FALSE) && cartUsualBoolean(cart, "doHgcInPopUp", TRUE)) +if (cfgOptionBooleanDefault("canDoHgcInPopUp", TRUE) && cartUsualBoolean(cart, "doHgcInPopUp", TRUE)) jsInline("var doHgcInPopUp = true;\n"); if (cfgOptionBooleanDefault("greyBarIcons", TRUE)) jsInline("var greyBarIcons = true;\n"); // TODO GALT nothing to do here. pruneRedundantCartVis(trackList); if (measureTiming) measureTime("Done with trackForm"); } static void toggleRevCmplDisp() /* toggle the reverse complement display mode */ { // forces complement bases to match display @@ -11786,31 +11786,31 @@ // means it is a one time link that won't work on refresh because // the variable isn't saved onto the URL if (sameOk(cgiOptionalString("startTutorial"), "true")) { jsInline("var startTutorialOnLoad = true;"); } if (sameOk(cgiOptionalString("startClinical"), "true")) { jsInline("var startClinicalOnLoad = true;"); } } } hPrintf("<div id='hgTrackUiDialog' style='display: none'></div>\n"); hPrintf("<div id='hgTracksDialog' style='display: none'></div>\n"); - if (cfgOptionBooleanDefault("canDoHgcInPopUp", FALSE)) + if (cfgOptionBooleanDefault("canDoHgcInPopUp", TRUE)) { jsIncludeFile("hgc.js", NULL); jsIncludeFile("alleles.js", NULL); hPrintf("<div id='hgcDialog' style='display: none'></div>\n"); } cartFlushHubWarnings(); } if (cartVarExists(cart, "chromInfoPage")) { cartRemove(cart, "chromInfoPage"); chromInfoPage(); }