2014-07-05 11:42:28 +09:00
|
|
|
Template[getTemplate('post_page')].helpers({
|
|
|
|
post_item: function () {
|
|
|
|
return getTemplate('post_item');
|
|
|
|
},
|
2014-07-05 16:29:10 +09:00
|
|
|
post_body: function () {
|
|
|
|
return getTemplate('post_body');
|
|
|
|
},
|
2014-07-05 11:42:28 +09:00
|
|
|
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(){
|
2014-08-08 09:54:20 +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
|
2014-06-15 15:06:31 +03:00
|
|
|
document.title = $(".post-title").text();
|
2013-05-15 18:45:27 +02:00
|
|
|
}
|