ab47b1a355db4af04610515c1dab0371108f4fc1
max
Fri Nov 5 17:31:10 2021 -0700
fixing ON/OFF thing again, wording and make window closable, refs #28324
diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c
index 7caeb9b..fadb73a 100644
--- src/hg/hgHubConnect/hgHubConnect.c
+++ src/hg/hgHubConnect/hgHubConnect.c
@@ -439,55 +439,55 @@
"Hub error checking will always refresh the files and never use our remote file cache (see below)."
"\n "
);
puts(""); // .tabSection
puts("
");
puts("
Enable Genome Browser debugging modes
");
puts("
These apply to all connected hubs. By default, caching is activated and track load times are not shown, but you can change these settings while developing your hub:
");
puts("
");
puts("
"); // margin-left
puts("
"); // tabSection
puts(""); // #hubDeveloper
jsOnEventById("click", "hubValidateButton", "makeIframe(event)");
}
void printSearchAndFilterBoxes(int searchEnabled, char *hubSearchTerms, char *dbFilter)
@@ -1461,31 +1461,33 @@
);
jsIncludeFile("utils.js", NULL);
jsIncludeFile("jquery-ui.js", NULL);
webIncludeResourceFile("jquery-ui.css");
jsIncludeFile("ajax.js", NULL);
jsIncludeFile("hgHubConnect.js", NULL);
webIncludeResourceFile("hgHubConnect.css");
jsIncludeFile("jquery.cookie.js", NULL);
jsIncludeFile("spectrum.min.js", NULL); // there is no color picker used anywhere on this page. why include this?
}
void doMiddle(struct cart *theCart)
/* Write header and body of html page. */
{
cart = theCart;
-measureTiming = cartUsualBoolean(cart, "measureTiming", FALSE);
+// hgHubConnect's own timing is tied to a special value of measureTiming, since now
+// our users use measureTiming a lot more, we need to keep a special mode for us
+measureTiming = sameString(cartUsualString(cart, "measureTiming", "full"), "full");
if(cgiIsOnWeb())
checkForGeoMirrorRedirect(cart);
if (cartVarExists(cart, hgHubDoClear))
{
doClearHub(cart);
cartWebEnd();
return;
}
if (cartVarExists(cart, hgHubCheckUrl))
{
doResetHub(cart);
}
@@ -1504,39 +1506,39 @@
puts("");
puts("");
puts("");
printIncludes();
jsInline("trackData = [];\n");
char *hubUrl = cartOptionalString(cart, "validateHubUrl");
jsInline("document.body.style.margin = 0;\n");
// simulate the look and feel of a dialog window with a blue bar at the top
puts("
");
+ jsOnEventByIdF("click", "windowX", "closeIframe()");
if (isEmpty(hubUrl))
printf("Please wait, loading and checking hub, this can take 15 seconds to several minutes.");
else
{
puts("