Commit bfd65ee11bf11a13793fd83cfe3cdab9303a07b0
1 parent
f7bb7da6
Exists in
master
and in
39 other branches
Select clone over SSH by default
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
colab/proxy/gitlab/templates/proxy/gitlab.html
| ... | ... | @@ -40,11 +40,9 @@ |
| 40 | 40 | // toggled |
| 41 | 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 | 47 | </script> |
| 50 | 48 | <script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script> | ... | ... |