Commit 709bf66ae35731a1204c8ff7766d593e958223c6
Exists in
master
and in
28 other branches
Merge branch 'fix_merge_button' into 'master'
Fix merge button Added better way to avoid '!important' display none inherited from Bootstrap's hide elements See merge request !90
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() |