Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

Commit

Permalink
[#828] Push nation feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupesh87 committed Sep 21, 2017
1 parent 14cf67a commit c70083d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/MyApp/app/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -1283,9 +1283,9 @@ $(function() {
var index = alreadySyncedPublications.map(function (element) {
return element.get('_id');
}).indexOf(publicationDistribDocsFromNation[i].publicationId);
console.log(index)
if (index > -1) {//code here
/* var pubId = publicationDistribDocsFromNation[i].publicationId;
var pubId = publicationDistribDocsFromNation[i].publicationId;
var nationUrl = 'http://' + publicationDistribDocsFromNation[i].createrNationName + ':' + App.password + '@' + publicationDistribDocsFromNation[i].createrNationUrl +
'/publications/' + pubId;
$.ajax({
Expand All @@ -1296,7 +1296,6 @@ $(function() {
if(publicationDoc.downloadedByNation && publicationDoc.downloadedByNation != undefined) {
if(publicationDoc.downloadedByNation.indexOf(currentBellName) == -1) {
publicationDoc.downloadedByNation.push(currentBellName);
console.log(publicationDoc.downloadedByNation)
var courseModel = new App.Models.Publication({
_id: publicationDoc._id
})
Expand Down Expand Up @@ -1359,7 +1358,7 @@ $(function() {
error: function(jqXHR, status, errorThrown){
console.log(status);
}
});*/
});
// don't increment newPublicationsCount cuz this publicationId already exists in the already synced publications at
// local server
} else {
Expand Down

0 comments on commit c70083d

Please sign in to comment.