Vulcan/client/views/comments/comment_reply.js

11 lines
334 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'));
return comment;
}
});