Commit b642d9388a5df9eee905a1580f770cf546cf522c

Authored by Charles Oliveira
1 parent 7b82e8f3

Added better strategy for bootstrap hide elements

colab/plugins/gitlab/templates/proxy/gitlab.html
... ... @@ -38,7 +38,12 @@
38 38 // gitlab .hide elements NEVER have a display:block, so
39 39 // instead of editing bootstrap.css, we just removed '.hide' css class and
40 40 // toggled
41   - jQuery('.hide').removeClass('hide').css('display', 'none');
  41 + jQuery('.hide').each(function(){
  42 + display_status = this.style.display;
  43 + jQuery(this).removeClass('hide');
  44 + if(display_status != 'block')
  45 + this.style.display = 'none';
  46 + })
42 47  
43 48 // Hit the SSH clone button to select it by default
44 49 jQuery(".git-clone-holder .btn:contains('SSH')").click()
... ...