Commit 938eb7b3c639d652527f2acace0652584ddbd8ef
Exists in
master
and in
11 other branches
Merge branch 'master' of https://gitlab.com/participa/proposal-app
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
js/main.js
| ... | ... | @@ -38,6 +38,11 @@ $.getJSON(noosferoAPI) |
| 38 | 38 | data['private_token'] = private_token; |
| 39 | 39 | resultsPlaceholder.innerHTML = template(data); |
| 40 | 40 | $('.login-container').html(loginTemplate()); |
| 41 | + | |
| 42 | + url = $(location).attr('href').split('#').pop(); | |
| 43 | + if(url.match(/proposal-item-[0-9]+/)){ | |
| 44 | + display_proposal(url); | |
| 45 | + } | |
| 41 | 46 | //Actions for links |
| 42 | 47 | $( '#nav-proposal-categories a' ).click(function(event){ |
| 43 | 48 | //Display the category tab | ... | ... |