mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
21 lines
624 B
JavaScript
21 lines
624 B
JavaScript
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');
|
|
}
|
|
})
|
|
|
|
Template[getTemplate('post_page')].rendered = function(){
|
|
if((scrollToCommentId=Session.get('scrollToCommentId')) && !this.rendered && $('#'+scrollToCommentId).exists()){
|
|
scrollPageTo('#'+scrollToCommentId);
|
|
Session.set('scrollToCommentId', null);
|
|
this.rendered=true;
|
|
}
|
|
if(this.data) // XXX
|
|
document.title = $(".post-title").text();
|
|
}
|