removes logs

This commit is contained in:
Mo Bitar
2016-12-18 21:35:55 -06:00
parent 47b986f15f
commit 4d916fe1da
3 changed files with 3 additions and 19 deletions

View File

@@ -213,12 +213,10 @@ angular.module('app.frontend')
}
this.saveItems = function(items, callback) {
console.log("saving items", items);
var request = Restangular.one("users", this.user.uuid).one("items");
request.items = _.map(items, function(item){
return this.createRequestParamsForItem(item);
}.bind(this));
console.log("sending request items", request.items);
request.post().then(function(response) {
var savedItems = response.items;
@@ -228,7 +226,6 @@ angular.module('app.frontend')
item.mergeMetadataFromItem(savedCounterpart);
})
console.log("response items", savedItems);
callback(response);
}.bind(this))
}
@@ -293,7 +290,6 @@ angular.module('app.frontend')
}
this.shareItem = function(item, callback) {
console.log("sharing item", item);
if(!this.user.uuid) {
alert("You must be signed in to share.");
return;
@@ -324,7 +320,6 @@ angular.module('app.frontend')
}
this.unshareItem = function(item, callback) {
console.log("unsharing item", item);
item.presentation_name = null;
var needsUpdate = [item].concat(item.referencesAffectedBySharingChange() || []);
this.saveItems(needsUpdate, function(success){})
@@ -338,7 +333,7 @@ angular.module('app.frontend')
var data = JSON.parse(jsonString);
var customModelManager = new ModelManager();
customModelManager.items = this.mapResponseItemsToLocalModels(data.items);
console.log("importing data", JSON.parse(jsonString));
console.log("Importing data", JSON.parse(jsonString));
this.saveItems(customModelManager.items, function(response){
callback(response);
});
@@ -486,8 +481,6 @@ angular.module('app.frontend')
item.content = encryptedContent;
item.auth_hash = authHash;
item.local_encryption_scheme = "1.0";
console.log("Encrypting item. itemKey:", item_key, "authHash:", item.auth_hash);
}
this.encryptItems = function(items, masterKey) {
@@ -532,7 +525,6 @@ angular.module('app.frontend')
this.decryptItems = function(items, masterKey) {
items.forEach(function(item){
// console.log("is encrypted?", item);
if(item.enc_item_key && typeof item.content === 'string') {
this.decryptSingleItem(item, masterKey);
}