58ec5f37f42ec310b284772611f9bb3e9f7f7d6c kate Tue Jun 3 11:36:52 2014 -0700 Fix a few double eq/noteqs not found by jshint diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index 30a48cf..ac5c6e3 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -14,21 +14,21 @@ // 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 + 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 } }); });