Vulcan/client/views/comments/comment_reply.js
2012-11-21 13:41:27 +09:00

11 lines
No EOL
334 B
JavaScript

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;
}
});