Vulcan/client/views/posts/post_page.js

10 lines
341 B
JavaScript
Raw Normal View History

Template.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
}