Commit 938eb7b3c639d652527f2acace0652584ddbd8ef

Authored by Caio Almeida
2 parents 5d80226c a226cba3

Merge branch 'master' of https://gitlab.com/participa/proposal-app

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
@@ -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