f9a3c489186a9c3bedd1548ea86394964769062c max Thu Jun 30 02:16:26 2022 -0700 fixing copy button which mysteriously broke after build, refs #29583 diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index cc5609c..eb17eed 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -94,37 +94,43 @@ } }); $('#hubSearchTerms').bind('keypress', function(e) { // binds listener to text field if (e.which === 13) { // listens for return key e.preventDefault(); // prevents return from also submitting whole form $('input[name="hubSearchButton"]').focus().click(); // clicks search button } }); $('#hubDbFilter').bind('keypress', function(e) { // binds listener to text field if (e.which === 13) { // listens for return key e.preventDefault(); // prevents return from also submitting whole form $('input[name="hubSearchButton"]').focus().click(); // clicks db filter button } }); $('.pasteIcon').bind('click', function(e) { - // the genome=hg19-part is stored in the element two elements before - var link = e.target.parentElement.previousSibling.previousSibling; + // The genome=hg19-part is stored in the element two elements before the icon SVG: + // Because the HTML code generated by the CGI looks like this: + //