Commit 573eb7b34857c64df2fc5d058a691486b1fe1c10
1 parent
e35c11e2
Exists in
master
and in
11 other branches
load proposal automatically
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
js/main.js
| @@ -38,6 +38,11 @@ $.getJSON(noosferoAPI) | @@ -38,6 +38,11 @@ $.getJSON(noosferoAPI) | ||
| 38 | data['private_token'] = private_token; | 38 | data['private_token'] = private_token; |
| 39 | resultsPlaceholder.innerHTML = template(data); | 39 | resultsPlaceholder.innerHTML = template(data); |
| 40 | $('.login-container').html(loginTemplate()); | 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 | //Actions for links | 46 | //Actions for links |
| 42 | $( '#nav-proposal-categories a' ).click(function(event){ | 47 | $( '#nav-proposal-categories a' ).click(function(event){ |
| 43 | //Display the category tab | 48 | //Display the category tab |