Commit 182f91c2e02452d2ab55483d5b9c2b86dc7dd095
Exists in
production
Merge branch 'master' into production
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
js/main.js
... | ... | @@ -558,7 +558,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers |
558 | 558 | $proposal.show(); |
559 | 559 | |
560 | 560 | //var url = host + '/api/v1/articles/' + proposal_id + '?private_token=' + Main.private_token + '&fields=id,body&content_type=ProposalsDiscussionPlugin::Topic'; |
561 | - var url = host + '/api/v1/articles/' + proposal_id + '?fields=id&fields[]=body&content_type=ProposalsDiscussionPlugin::Topic'; | |
561 | + var url = host + '/api/v1/articles/' + proposal_id + '?fields[]=id&fields[]=body&content_type=ProposalsDiscussionPlugin::Topic'; | |
562 | 562 | $.getJSON(url).done(function( data ) { |
563 | 563 | $('#proposal-item-' + proposal_id + ' .body-content').replaceWith(data.article.body); |
564 | 564 | }) |
... | ... | @@ -1127,7 +1127,7 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers |
1127 | 1127 | })(); |
1128 | 1128 | |
1129 | 1129 | |
1130 | - var noosferoAPI = host + '/api/v1/articles/' + proposal_discussion + '?private_token=' + Main.private_token + '&fields=id&fields[]=children&fields[]=categories&fields[]=abstract&fields[]=title&fields[]=image&fields[]=url&fields[]=setting&fields[]=position'; | |
1130 | + var noosferoAPI = host + '/api/v1/articles/' + proposal_discussion + '?private_token=' + Main.private_token + '&fields[]=id&fields[]=children&fields[]=categories&fields[]=abstract&fields[]=title&fields[]=image&fields[]=url&fields[]=setting&fields[]=position'; | |
1131 | 1131 | |
1132 | 1132 | $.getJSON(noosferoAPI) |
1133 | 1133 | .done(function( data ) { | ... | ... |