Vulcan/client/templates/comment_page.js

10 lines
368 B
JavaScript
Raw Normal View History

Template.comment_page.post = function(){
var selectedComment = Comments.findOne(Session.get('selectedCommentId'));
return selectedComment && Posts.findOne(selectedComment.post);
2012-09-05 11:55:06 +09:00
};
Template.comment_page.comment = function(){
var comment = Comments.findOne(Session.get('selectedCommentId'));
Template.comment_page.repress_recursion = true;
2012-09-05 11:55:06 +09:00
return comment;
};