9cfa269e30bc186cd46a58e6d53f9faa61d3fb88 gperez2 Thu Jun 20 14:20:02 2024 -0700 Switching Track search page, Get DNA page, hgBlat, hgSession, hgPcr, and hgCustom buttons to sentence case, refs #25787 diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index f2e1b46..84510a3 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -401,43 +401,43 @@ { char *dbEnd = strchr(dbIdx, '&'); char *db = NULL; if (dbEnd != NULL) db = cloneStringZ(dbIdx, dbEnd-dbIdx); else db = cloneString(dbIdx); printf("%s", db); } else printf("n/a"); if (gotSettings) { safef(buf, sizeof(buf), "%s%s", hgsEditPrefix, encSessionName); - cgiMakeButton(buf, "view/edit"); + cgiMakeButton(buf, "View/edit"); char *description = getSetting(row[5], "description"); if (!isEmpty(description)) hasDescription = TRUE; } else printf("unavailable"); printf(""); safef(buf, sizeof(buf), "%s%s", hgsDeletePrefix, encSessionName); char command[512]; safef(command, sizeof(command), confirmDeleteFormat, encSessionName); - cgiMakeOnClickSubmitButton(command, buf, "delete"); + cgiMakeOnClickSubmitButton(command, buf, "Delete"); printf(""); safef(buf, sizeof(buf), "%s%s", hgsSharePrefix, encSessionName); cgiMakeCheckBoxWithId(buf, shared>0, buf); jsOnEventById("change",buf,"document.mainForm.submit();"); printf(""); safef(buf, sizeof(buf), "%s%s", hgsGalleryPrefix, encSessionName); cgiMakeCheckBoxFourWay(buf, inGallery, shared>0, buf, NULL, NULL); if (hasDescription || inGallery) jsOnEventById("change", buf, "document.mainForm.submit();"); else jsOnEventById("change", buf, "warn('Please first use the view/edit option to " "add a description for this session.'); this.checked = false;"); @@ -465,61 +465,61 @@ void showOtherUserOptions() /* Print out inputs for loading another user's saved session. */ { printf("\n"); printf("\n" "\n"); printf("\n"); printf("
" "Use settings from another user's saved session:
   user: \n"); cgiMakeOnKeypressTextVar(hgsOtherUserName, cartUsualString(cart, hgsOtherUserName, ""), 20, "return noSubmitOnEnter(event);"); printf("   session name: \n"); cgiMakeOnKeypressTextVar(hgsOtherUserSessionName, cartUsualString(cart, hgsOtherUserSessionName, ""), 20, jsPressOnEnter(hgsDoOtherUser)); printf("  "); -cgiMakeButton(hgsDoOtherUser, "submit"); +cgiMakeButton(hgsDoOtherUser, "Submit"); printf("
\n"); } void showLoadingOptions(char *userName, boolean savedSessionsSupported) /* Show options for loading settings from another user's session, a file * or URL. */ { printf("

Restore Settings

\n"); if (savedSessionsSupported) showOtherUserOptions(); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("
Use settings from a local file:\n", hgsLoadLocalFileName, hgsLoadLocalFileName); jsOnEventById("keypress", hgsLoadLocalFileName,"return noSubmitOnEnter(event);"); printf("  "); -cgiMakeButton(hgsDoLoadLocal, "submit"); +cgiMakeButton(hgsDoLoadLocal, "Submit"); printf("
Use settings from a URL (http://..., ftp://...):" "\n"); cgiMakeOnKeypressTextVar(hgsLoadUrlName, cartUsualString(cart, hgsLoadUrlName, ""), 20, jsPressOnEnter(hgsDoLoadUrl)); printf("  "); -cgiMakeButton(hgsDoLoadUrl, "submit"); +cgiMakeButton(hgsDoLoadUrl, "Submit"); printf("
\n"); printf("

\n"); } static struct dyString *dyPrintCheckExistingSessionJs(struct slName *existingSessionNames, char *exceptName) /* Write JS that will pop up a confirm dialog if the user's new session name is the same * (case-insensitive) as any existing session name, i.e. they would be overwriting it. * If exceptName is given, then it's OK for the new session name to match that. */ { struct dyString *js = dyStringNew(1024); struct slName *sn; // MySQL does case-insensitive comparison because our DEFAULT CHARSET=latin1; @@ -556,67 +556,67 @@ printf("Save current settings as named session:" "\n" "   name:\n"); cgiMakeOnKeypressTextVar(hgsNewSessionName, hubConnectSkipHubPrefix(cartUsualString(cart, "db", "mySession")), 20, jsPressOnEnter(hgsDoNewSession)); printf("   "); cgiMakeCheckBox(hgsNewSessionShare, cartUsualBoolean(cart, hgsNewSessionShare, TRUE)); printf("allow this session to be loaded by others\n"); printf(""); printf(" "); if (existingSessionNames) { struct dyString *js = dyPrintCheckExistingSessionJs(existingSessionNames, NULL); - cgiMakeOnClickSubmitButton(js->string, hgsDoNewSession, "submit"); + cgiMakeOnClickSubmitButton(js->string, hgsDoNewSession, "Submit"); dyStringFree(&js); } else cgiMakeButton(hgsDoNewSession, "submit"); printf("\n"); printf("\n"); } printf("Save current settings to a local file:\n"); printf("   file:\n"); cgiMakeOnKeypressTextVar(hgsSaveLocalFileName, cartUsualString(cart, hgsSaveLocalFileName, ""), 20, jsPressOnEnter(hgsDoSaveLocal)); printf("   "); printf("file type returned: "); char *compressType = cartUsualString(cart, hgsSaveLocalFileCompress, textOutCompressNone); cgiMakeRadioButton(hgsSaveLocalFileCompress, textOutCompressNone, differentWord(textOutCompressGzip, compressType)); printf(" plain text  "); cgiMakeRadioButton(hgsSaveLocalFileCompress, textOutCompressGzip, sameWord(textOutCompressGzip, compressType)); printf(" gzip compressed (ignored if output file is blank)"); printf(""); printf(" "); -cgiMakeButton(hgsDoSaveLocal, "submit"); +cgiMakeButton(hgsDoSaveLocal, "Submit"); printf("\n"); printf("(leave file blank to get output in " "browser window)\n"); printf("\n"); printf("Save Custom Tracks:\n"); printf("   "); printf("back up custom tracks to archive .tar.gz"); printf(""); printf(" "); -cgiMakeButton(hgsShowDownloadPrefix, "submit"); +cgiMakeButton(hgsShowDownloadPrefix, "Submit"); printf("\n"); printf("\n"); printf("\n"); } void showSessionControls(char *userName, boolean savedSessionsSupported, boolean webStarted) /* If userName is non-null, show sessions that belong to user and allow * saving of named sessions. * If savedSessionsSupported, allow import of named sessions. * Allow export/import of settings from file/URL. */ { char *formMethod = cartUsualString(cart, "formMethod", "POST");