f659fd55c4d823d84ee4cce89506d639d69780fc max Fri Jun 17 01:13:06 2022 -0700 by popular vote, shortening the button label, to just "Copy". from "Copy to clipboard". seven devs/QA voted for the shorter label. refs #29586 diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index 12f7084..c17c0d0 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -180,31 +180,31 @@ hLocalHostCgiBinUrl(), userName, sessionName); if (encode) { dyStringPrintf(dy, "%s", cgiEncodeFull(dyTmp->string)); } else { dyStringPrintf(dy, "%s", dyTmp->string); } dyStringFree(&dyTmp); } void printCopyToClipboardButton(struct dyString *dy, char *iconId, char *targetId) /* print a copy-to-clipboard button with DOM id iconId that copies the node text of targetId */ { -dyStringPrintf(dy, " \n", iconId, targetId); +dyStringPrintf(dy, " \n", iconId, targetId); jsOnEventById("click", "copyIcon", "copyToClipboard(event);"); } void printShareMessage(struct dyString *dy, char *userName, char *sessionName, boolean encode) { struct dyString *dyTmp = dyStringNew(0); addSessionLink(dyTmp, userName, sessionName, encode, TRUE); dyStringPrintf(dy, "

You can share this session with the following URL:
%s ", dyTmp->string); printCopyToClipboardButton(dy, "copyIcon", "urlText"); dyStringAppend(dy, "

"); }