From 573eb7b34857c64df2fc5d058a691486b1fe1c10 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Sun, 19 Apr 2015 18:15:17 -0300 Subject: [PATCH] load proposal automatically --- js/main.js | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/js/main.js b/js/main.js index b4e4448..005933e 100644 --- a/js/main.js +++ b/js/main.js @@ -38,6 +38,11 @@ $.getJSON(noosferoAPI) data['private_token'] = private_token; resultsPlaceholder.innerHTML = template(data); $('.login-container').html(loginTemplate()); + + url = $(location).attr('href').split('#').pop(); + if(url.match(/proposal-item-[0-9]+/)){ + display_proposal(url); + } //Actions for links $( '#nav-proposal-categories a' ).click(function(event){ //Display the category tab -- libgit2 0.21.2