diff --git a/app/nation/app/views/CommunityDetailsView.js b/app/nation/app/views/CommunityDetailsView.js index 0d20e82f9..2ba29e7e9 100644 --- a/app/nation/app/views/CommunityDetailsView.js +++ b/app/nation/app/views/CommunityDetailsView.js @@ -71,6 +71,7 @@ $(function() { var doc = this.model; var code = doc.code; var docID = []; + var that = this; docID.push(doc._id); doc.registrationRequest= status; doc.authName= this.getLoggedInName(); @@ -171,6 +172,38 @@ $(function() { console.log(err); } }); + $.ajax({ + type: 'GET', + url: '/publications/_all_docs?include_docs=true', + dataType: 'jsonp', + async: false, + success: function (response) { + for(i=0; i