Vulcan/client/templates/comment_page.js

10 lines
375 B
JavaScript
Raw Normal View History

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