Commit b642d9388a5df9eee905a1580f770cf546cf522c
1 parent
7b82e8f3
Exists in
master
and in
28 other branches
Added better strategy for bootstrap hide elements
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
colab/plugins/gitlab/templates/proxy/gitlab.html
@@ -38,7 +38,12 @@ | @@ -38,7 +38,12 @@ | ||
38 | // gitlab .hide elements NEVER have a display:block, so | 38 | // gitlab .hide elements NEVER have a display:block, so |
39 | // instead of editing bootstrap.css, we just removed '.hide' css class and | 39 | // instead of editing bootstrap.css, we just removed '.hide' css class and |
40 | // toggled | 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 | // Hit the SSH clone button to select it by default | 48 | // Hit the SSH clone button to select it by default |
44 | jQuery(".git-clone-holder .btn:contains('SSH')").click() | 49 | jQuery(".git-clone-holder .btn:contains('SSH')").click() |