Commit bfd65ee11bf11a13793fd83cfe3cdab9303a07b0

Authored by Sergio Oliveira
1 parent f7bb7da6

Select clone over SSH by default

colab/proxy/gitlab/templates/proxy/gitlab.html
@@ -40,11 +40,9 @@ @@ -40,11 +40,9 @@
40 // toggled 40 // toggled
41 $('.hide').removeClass('hide').css('display', 'none'); 41 $('.hide').removeClass('hide').css('display', 'none');
42 42
43 - // When there's clone buttons for HTTPS and SSH, hit SSH and make HTTPS disapear  
44 - if(jQuery('.git-clone-holder button'))  
45 - {  
46 - jQuery('.git-clone-holder button')[0].click();  
47 - } 43 + // Hit the SSH clone button to select it by default
  44 + jQuery$(".git-clone-holder .btn:contains('SSH')").click()
  45 +
48 }); 46 });
49 </script> 47 </script>
50 <script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script> 48 <script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script>