4d478b58dde35ebf1836c1ed9bfa3686485b92ce braney Wed Aug 6 23:30:35 2014 -0700 make a link in the warning about udcTimout being set to clear theudcTimeout variable #13675 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 652b5d6..8de95d0 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -5912,20 +5912,21 @@ jsonObjectAdd(jsonForClient, "measureTiming", newJsonBoolean(measureTiming)); // js code needs to know if a highlightRegion is defined for this db char *highlightDef = cartOptionalString(cart, "highlight"); if (highlightDef && startsWith(database,highlightDef) && highlightDef[strlen(database)] == '.') jsonObjectAdd(jsonForClient, "highlight", newJsonString(highlightDef)); jsonObjectAdd(jsonForClient, "enableHighlightingDialog", newJsonBoolean(cartUsualBoolean(cart, "enableHighlightingDialog", TRUE))); hPrintf("<script type='text/javascript'>\n"); jsonPrint((struct jsonElement *) jsonForClient, "hgTracks", 0); hPrintf("</script>\n"); if (measureTiming) measureTime("Time at end of doMiddle, next up cart write"); if (cartOptionalString(cart, "udcTimeout")) { - warn("The Genome Brower cart currently includes the \"udcTimeout\" string. While this is useful for debugging hubs, it may negatively impact performance. To clear this variable, reset cart."); - //warn("Removing udcTimeout from cart. To set again add \"&udcTimeout=0\" to hgTracks URL"); - // cartRemove(cart,"udcTimeout"); + warn("The Genome Browser cart currently includes the \"udcTimeout\" string. " + "While this is useful for debugging hubs, it may negatively impact " + "performance. To clear this variable, click " + "<A HREF=hgTracks?hgsid=%s&udcTimeout=[]>here</A>.",cartSessionId(cart)); } }