mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00

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.
11 lines
No EOL
293 B
JavaScript
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);
|
|
}
|
|
} |