Vulcan/client/body.js
Tom Coleman 72d8115b1b New router is working, to some degree.
I switched over to router 2.0, and refactored the permissions a bit.
There's still a bit of work needed to get the permissions fully up to speed.
2012-11-21 14:28:18 +11:00

11 lines
No EOL
293 B
JavaScript

Template.body.created = function(){
Session.set('currentScroll', null);
}
Template.body.rendered = function(){
if(currentScroll=Session.get('currentScroll')){
console.log(currentScroll);
$('body').scrollTop(currentScroll);
Session.set('currentScroll', null);
}
}