From f7bb7da694e0cd49cd0d21cf7ddeb7022c727af6 Mon Sep 17 00:00:00 2001 From: Charles Oliveira <18oliveira.charles@gmail.com> Date: Tue, 2 Dec 2014 07:58:24 -0200 Subject: [PATCH] Using JS to hit SSH button on clone options --- colab/proxy/gitlab/templates/proxy/gitlab.html | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/colab/proxy/gitlab/templates/proxy/gitlab.html b/colab/proxy/gitlab/templates/proxy/gitlab.html index 21bc13e..6d571a1 100644 --- a/colab/proxy/gitlab/templates/proxy/gitlab.html +++ b/colab/proxy/gitlab/templates/proxy/gitlab.html @@ -39,6 +39,12 @@ // instead of editing bootstrap.css, we just removed '.hide' css class and // 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(); + } }); -- libgit2 0.21.2