90e69c855cb026651ba89b8442036d11cb2ec4fb kate Tue May 13 11:22:07 2014 -0700 jsbeautifier diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index 4b55f7d..0b83695 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -1,30 +1,33 @@ // hover effect to highlight table rows $(function() { $(".hubList tr").hover( - function(){ $(this).addClass("hoverRow");}, - function(){ $(this).removeClass("hoverRow"); } - ) + + 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 } }); + $("#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 the AddHub button + if (validateUrl($('#hubUrl').val())) $('input[name="hubAddButton"]').focus().click(); // clicks the AddHub button } }) }); - - - -