Vulcan/client/views/comments/comment_reply.js

12 lines
384 B
JavaScript
Raw Normal View History

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