Vulcan/client/views/posts/post_page.js

22 lines
624 B
JavaScript
Raw Normal View History

2014-07-05 11:42:28 +09:00
Template[getTemplate('post_page')].helpers({
post_item: function () {
return getTemplate('post_item');
},
comment_form: function () {
return getTemplate('comment_form');
},
comment_list: function () {
return getTemplate('comment_list');
}
})
2014-07-05 11:24:28 +09:00
Template[getTemplate('post_page')].rendered = function(){
2013-07-04 13:07:47 +09:00
if((scrollToCommentId=Session.get('scrollToCommentId')) && !this.rendered && $('#'+scrollToCommentId).exists()){
scrollPageTo('#'+scrollToCommentId);
Session.set('scrollToCommentId', null);
this.rendered=true;
}
2014-05-01 13:10:34 -07:00
if(this.data) // XXX
document.title = $(".post-title").text();
2013-05-15 18:45:27 +02:00
}