From bfd65ee11bf11a13793fd83cfe3cdab9303a07b0 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Mon, 8 Dec 2014 13:17:29 -0200 Subject: [PATCH] Select clone over SSH by default --- colab/proxy/gitlab/templates/proxy/gitlab.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/colab/proxy/gitlab/templates/proxy/gitlab.html b/colab/proxy/gitlab/templates/proxy/gitlab.html index 6d571a1..df88942 100644 --- a/colab/proxy/gitlab/templates/proxy/gitlab.html +++ b/colab/proxy/gitlab/templates/proxy/gitlab.html @@ -40,11 +40,9 @@ // toggled $('.hide').removeClass('hide').css('display', 'none'); - // When there's clone buttons for HTTPS and SSH, hit SSH and make HTTPS disapear - if(jQuery('.git-clone-holder button')) - { - jQuery('.git-clone-holder button')[0].click(); - } + // Hit the SSH clone button to select it by default + jQuery$(".git-clone-holder .btn:contains('SSH')").click() + }); -- libgit2 0.21.2