mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
removing a few console.logs
This commit is contained in:
parent
a2f0b69834
commit
77d572345b
6 changed files with 9 additions and 9 deletions
|
@ -44,7 +44,7 @@ UI.registerHelper('isAdmin', function(showError) {
|
||||||
UI.registerHelper('canEdit', function(collectionName, item, action) {
|
UI.registerHelper('canEdit', function(collectionName, item, action) {
|
||||||
var action = (typeof action !== 'string') ? null : action;
|
var action = (typeof action !== 'string') ? null : action;
|
||||||
var collection = (typeof collectionName !== 'string') ? Posts : eval(collectionName);
|
var collection = (typeof collectionName !== 'string') ? Posts : eval(collectionName);
|
||||||
console.log(item);
|
// console.log(item);
|
||||||
// var itemId = (collectionName==="Posts") ? Session.get('selectedPostId') : Session.get('selectedCommentId');
|
// var itemId = (collectionName==="Posts") ? Session.get('selectedPostId') : Session.get('selectedCommentId');
|
||||||
// var item=collection.findOne(itemId);
|
// var item=collection.findOne(itemId);
|
||||||
return item && canEdit(Meteor.user(), item, action);
|
return item && canEdit(Meteor.user(), item, action);
|
||||||
|
|
|
@ -110,7 +110,7 @@ Template.post_edit.events({
|
||||||
};
|
};
|
||||||
properties = _.extend(properties, adminProperties);
|
properties = _.extend(properties, adminProperties);
|
||||||
}
|
}
|
||||||
console.log(properties)
|
// console.log(properties)
|
||||||
|
|
||||||
Posts.update(post._id,{
|
Posts.update(post._id,{
|
||||||
$set: properties
|
$set: properties
|
||||||
|
|
|
@ -70,7 +70,7 @@ Template.post_submit.events({
|
||||||
properties.submitted = new Date(submitted);
|
properties.submitted = new Date(submitted);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(properties)
|
// console.log(properties)
|
||||||
|
|
||||||
Meteor.call('post', properties, function(error, post) {
|
Meteor.call('post', properties, function(error, post) {
|
||||||
if(error){
|
if(error){
|
||||||
|
|
|
@ -174,7 +174,7 @@ Meteor.methods({
|
||||||
post.submitted = submitted;
|
post.submitted = submitted;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(post)
|
// console.log(post)
|
||||||
|
|
||||||
postId = Posts.insert(post);
|
postId = Posts.insert(post);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
trackEvent = function(event, properties){
|
trackEvent = function(event, properties){
|
||||||
console.log('trackevent: ', event, properties);
|
// console.log('trackevent: ', event, properties);
|
||||||
var properties= (typeof properties === 'undefined') ? {} : properties;
|
var properties= (typeof properties === 'undefined') ? {} : properties;
|
||||||
//TODO
|
//TODO
|
||||||
// add event to an Events collection for logging and buffering purposes
|
// add event to an Events collection for logging and buffering purposes
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(collection.findOne(item._id));
|
// console.log(collection.findOne(item._id));
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
if (item.userId != user._id)
|
if (item.userId != user._id)
|
||||||
modifyKarma(item.userId, votePower);
|
modifyKarma(item.userId, votePower);
|
||||||
|
|
||||||
console.log(collection.findOne(item._id));
|
// console.log(collection.findOne(item._id));
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
if (item.userId != user._id)
|
if (item.userId != user._id)
|
||||||
modifyKarma(item.userId, votePower);
|
modifyKarma(item.userId, votePower);
|
||||||
|
|
||||||
console.log(collection.findOne(item._id));
|
// console.log(collection.findOne(item._id));
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
if (item.userId != user._id)
|
if (item.userId != user._id)
|
||||||
modifyKarma(item.userId, votePower);
|
modifyKarma(item.userId, votePower);
|
||||||
|
|
||||||
console.log(collection.findOne(item._id));
|
// console.log(collection.findOne(item._id));
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue