Commit bee1c3e7ef8e3e21cc435ce38a30a9b4ebbaf50f
1 parent
445d14bc
Exists in
master
and in
39 other branches
Preventing Gitlab to break header and footer links
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
src/proxy/templates/proxy/gitlab.html
... | ... | @@ -29,6 +29,17 @@ |
29 | 29 | {% block head_js %} |
30 | 30 | <script type="text/javascript"> |
31 | 31 | $(function(){ |
32 | + // By Default Gitlab uses an event listener to stop propagation on any links | |
33 | + // and use HTML5 pseudo navigation. That was causing all links in our | |
34 | + // headers and footers to send the user to the right location but | |
35 | + // applying Gitlab CSS everywhere. | |
36 | + // The workaround below will run before the Gitlab event and will prevent | |
37 | + // it to work. | |
38 | + | |
39 | + $('.navbar a', 'footer').not('.dropdown-toggle').on("click", | |
40 | + function(evt) { evt.stopPropagation(); } | |
41 | + ); | |
42 | + | |
32 | 43 | $('div.panel-body div.automerge_widget').removeClass('hide'); |
33 | 44 | }); |
34 | 45 | </script> | ... | ... |