From 8249c7f43f853dca4c1a028f2b32f6ea6429a3c1 Mon Sep 17 00:00:00 2001 From: Rupesh87 Date: Fri, 3 Nov 2017 14:03:02 +0545 Subject: [PATCH] [#1045] Auto publication for manual accept --- app/nation/app/views/CommunityDetailsView.js | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) 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