30eb9db3aaee5dc558ef4554bc9ffb9bdf2fa048 max Thu Jun 16 08:47:49 2022 -0700 adding more space and longer text to copy button on hgSession, refs diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c index af3ad72..12f7084 100644 --- src/hg/hgSession/hgSession.c +++ src/hg/hgSession/hgSession.c @@ -177,47 +177,47 @@ else dyStringPrintf(dyTmp, "%shgTracks?hgS_doOtherUser=submit&" "hgS_otherUserName=%s&hgS_otherUserSessionName=%s", hLocalHostCgiBinUrl(), userName, sessionName); if (encode) { dyStringPrintf(dy, "%s", cgiEncodeFull(dyTmp->string)); } else { dyStringPrintf(dy, "%s", dyTmp->string); } dyStringFree(&dyTmp); } -void printCopyToClipboardIcon(struct dyString *dy, char *iconId, char *targetId) -/* print a copy-to-clipboard icon with DOM id iconId that copies the node text of targetId */ +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", + "

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

"); } char *getSessionLink(char *encUserName, char *encSessionName) /* Form a link that will take the user to a bookmarkable page that * will load the given session. */ { struct dyString *dy = dyStringNew(1024); dyStringPrintf(dy, "Browser\n"); return dyStringCannibalize(&dy); } char *getSessionEmailLink(char *encUserName, char *encSessionName)