f736354e7816df5e18a617918368f96775985b02
Merge parents b1e78a03 0f8f4c3
tdreszer
  Tue Jun 3 10:20:32 2014 -0700
Had to merge in change from master, and clean up a bit.
diff --cc src/hg/js/hgHubConnect.js
index 30a48cf,742ab48..8fde28c
--- src/hg/js/hgHubConnect.js
+++ src/hg/js/hgHubConnect.js
@@@ -1,34 -1,36 +1,41 @@@
 +
  // hover effect to highlight table rows
 -$(function(){
 -	$(".hubList tr").hover(
 -   		function(){ $(this).addClass("hoverRow");},
 -   		function(){ $(this).removeClass("hoverRow"); }
 -   	)
 +$(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 } });
 +    $("#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
+     $('#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 (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
 -		if (e.which == 13) {  // listens for return key
 -		        e.preventDefault();   // prevents return from also submitting whole form
 -			$('input[name="hubSearchButton"]').focus().click();  // clicks the AddHub button
 -		}
 -    })
++        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
 +        }
 +    });
  });
 -
 -
 -
 -