From b642d9388a5df9eee905a1580f770cf546cf522c Mon Sep 17 00:00:00 2001 From: Charles Oliveira <18oliveira.charles@gmail.com> Date: Tue, 18 Aug 2015 14:24:37 -0400 Subject: [PATCH] Added better strategy for bootstrap hide elements --- colab/plugins/gitlab/templates/proxy/gitlab.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/colab/plugins/gitlab/templates/proxy/gitlab.html b/colab/plugins/gitlab/templates/proxy/gitlab.html index 1d55f9f..1e48b8a 100644 --- a/colab/plugins/gitlab/templates/proxy/gitlab.html +++ b/colab/plugins/gitlab/templates/proxy/gitlab.html @@ -38,7 +38,12 @@ // gitlab .hide elements NEVER have a display:block, so // instead of editing bootstrap.css, we just removed '.hide' css class and // toggled - jQuery('.hide').removeClass('hide').css('display', 'none'); + jQuery('.hide').each(function(){ + display_status = this.style.display; + jQuery(this).removeClass('hide'); + if(display_status != 'block') + this.style.display = 'none'; + }) // Hit the SSH clone button to select it by default jQuery(".git-clone-holder .btn:contains('SSH')").click() -- libgit2 0.21.2