79e2e0421ffa1203d75e66351a2046085129528e jcasper Thu Jun 15 15:16:16 2017 -0700 hgHubConnect now displays search details and indexes description content, refs #13625 diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index 8fde28c..64af1ef 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -1,41 +1,47 @@ // hover effect to highlight table rows $(function() { $(".hubList tr").hover( function() { $(this).addClass("hoverRow"); }, function() { $(this).removeClass("hoverRow"); }); }); // initializes the tabs - with cookie option // cookie option requires jquery.cookie.js $(function() { $("#tabs").tabs({ cookie: { name: 'hubTab_cookie', expires: 30 } }); }); // creates keyup event; listening for return key press $(document).ready(function() { $('#hubUrl').bind('keypress', function(e) { // binds listener to url field if (e.which === 13) { // listens for return key e.preventDefault(); // prevents return from also submitting whole form if (validateUrl($('#hubUrl').val())) $('input[name="hubAddButton"]').focus().click(); // clicks AddHub button } }); - $('#hubSearchTerms').bind('keypress', function(e) { // binds listener to url field + $('#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 AddHub button + $('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="dbFilterButton"]').focus().click(); // clicks db filter button } }); });