Commit 573eb7b34857c64df2fc5d058a691486b1fe1c10

Authored by Leandro Santos
1 parent e35c11e2

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 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
... ...