From 336cb3aa4d8fb7aaf4fbccf849a72fcac908a719 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 28 Sep 2015 13:41:28 -0300 Subject: [PATCH] change categories_ids to category_ids --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 64cfb91..51f4c4f 100644 --- a/js/main.js +++ b/js/main.js @@ -874,8 +874,8 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers return msg; }, display_events: function(cat_id, active_category) { - //var url = host + '/api/v1/communities/' + dialoga_community + '/articles?categories_ids[]=' + cat_id + '&content_type=Event&private_token=' + '375bee7e17d0021af7160ce664874618'; - var url = host + '/api/v1/communities/' + dialoga_community + '/articles?categories_ids[]=' + cat_id + '&content_type=Event'; + //var url = host + '/api/v1/communities/' + dialoga_community + '/articles?category_ids[]=' + cat_id + '&content_type=Event&private_token=' + '375bee7e17d0021af7160ce664874618'; + var url = host + '/api/v1/communities/' + dialoga_community + '/articles?category_ids[]=' + cat_id + '&content_type=Event'; $.getJSON(url).done(function (data) { if(data.articles.length === 0){ -- libgit2 0.21.2