From a43674418b005c017c1b2430d1508c1b7b759661 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 27 Apr 2015 20:33:21 -0300 Subject: [PATCH] Change api endpoit to suggest proposals --- index.html | 6 +++--- js/main.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index d82ed1a..70eae61 100644 --- a/index.html +++ b/index.html @@ -170,13 +170,13 @@
Ela se tornará pública em até 24 horas após o envio e poderá ser apoiada por outros participantes.
Envie Sua Proposta
Login
-
+
- +
@@ -203,7 +203,7 @@

Esta história pode nos ajudar a melhorar a nossa ação e não será divulgada.

-
+
diff --git a/js/main.js b/js/main.js index 42ded88..6acc122 100644 --- a/js/main.js +++ b/js/main.js @@ -167,7 +167,7 @@ define(['handlebars'], function(Handlebars){ message.text(''); $.ajax({ type: 'post', - url: host + '/api/v1/articles/' + proposal_id + '/children', + url: host + $form.attr('action'), data: $('#'+this.id).serialize() + '&private_token=' + private_token + '&fields=id&article[name]=article_' + guid() }) .done(function( /*data*/ ) { @@ -338,6 +338,7 @@ define(['handlebars'], function(Handlebars){ .toString(16) .substring(1); } + return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); } function display_category_tab(){ -- libgit2 0.21.2