Commit b976941b8fcf99a5e4f298117e9bd2b9666295e2
1 parent
cd8a438f
Exists in
master
and in
39 other branches
Workaround for gitlab javascript conflicts
Showing
1 changed file
with
24 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,24 @@ |
1 | +{% extends 'base.html' %} | |
2 | + | |
3 | + | |
4 | +{% block head_js %} | |
5 | +<!-- XXX / FIXME: Evil --> | |
6 | +<script type="text/javascript"> | |
7 | + if(window.location.href.match(/\/gitlab\//)) | |
8 | + { | |
9 | + $('body').append('<script type="text/javascript" src="/static/third-party/bootstrap/js/bootstrap.min.js">'); | |
10 | + $('body').append('<script type="text/javascript" src="/static/third-party/jquery.cookie.js">'); | |
11 | + $(function(){ | |
12 | + $('a').click(function(evt){ | |
13 | + url = $(this).attr('href'); | |
14 | + if(url != undefined && url.match(/\/redmine\//)){ window.location = url; } }); | |
15 | + $('.navbar a').click(function(evt){ | |
16 | + evt.preventDefault(); | |
17 | + url = $(this).attr('href'); | |
18 | + if(url != '#') | |
19 | + window.location = 'http://beta.softwarepublico.gov.br' + $(this).attr('href'); }); | |
20 | + $('div.panel-body div.automerge_widget').removeClass('hide'); | |
21 | + }); | |
22 | + } | |
23 | +</script> | |
24 | +{% endblock %} | ... | ... |