a8f29caea973a2482924c38c981b59a28e22e8ec max Fri Oct 22 05:14:38 2021 -0700 making hgHubConnect more self-explanatory, with more text. The development tab is revamped to provide a visual indicator of what's going on while hubCheck is running. (The concept with an IFRAME could well be applied to hgc links from hgTracks, to avoid a full page reload.), refs #28324 diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index 23b62f7..173740a 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -34,63 +34,55 @@ if (! alreadyRun) node.setAttribute('src', finalUrl); alreadyRun = true; // because 'load' fires again when finalUrl is loaded }); return false; } function closeIframe() { var theFrame = window.parent.document.getElementById('checkerFrame'); theFrame.parentNode.removeChild(theFrame); } function reloadIframe() { document.getElementById("content").innerHTML = "Re-loading hub..."; window.parent.document.getElementById('checkerFrame').src += ''; - } // 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 } }); }); -// make sure that a click onto "Public Hubs" doesn't jump to the tabs. -//$(document).ready(function() { - //$('a[href^="tabs-"]').on('click', function(e) { - //e.preventDefault(); - //}); -//}); - // 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 } }); $('#validateHubUrl').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($('#validateHubUrl').val())) $('input[name="hubValidateButton"]').focus().click(); // clicks Validate Url button }