mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
11 lines
334 B
JavaScript
11 lines
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;
|
||
|
}
|
||
|
});
|