cb1a90324212bef926a2d1523121b5543feead82 max Mon Jun 27 06:20:32 2022 -0700 changing alert box text for hgHubConnect, refs #29583 diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index 39d5bb3..cc5609c 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -111,31 +111,31 @@ var href = link.href; var genomeArg = href.split("&")[1]; // the url is in the <input> element just before the SVG var copyText = e.target.parentElement.previousSibling; var myBaseUrl = copyText.baseURI.split('?')[0]; var hgTracksUrl = myBaseUrl.replace("hgHubConnect", "hgTracks"); var oldVal = copyText.value; copyText.value = hgTracksUrl+"?hubUrl="+copyText.value+"&"+genomeArg; copyText.style.display = 'none'; copyText.type = 'text'; copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ document.execCommand('copy'); copyText.type = 'hidden'; - alert("Copied the URL " + copyText.value + " to the clipboard"); + alert("Copied URL to clipboard: " + copyText.value); copyText.value = oldVal; }); }); var hubSearchTree = (function() { var treeDiv; // Points to div we live in function hubSearchTreeContextMenuHandler (node, callback) { var nodeType = node.li_attr.nodetype; if (nodeType == 'track') { callback({ 'openConfig': { 'label' : 'Configure this track', 'action' : function () {