mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
16 lines
No EOL
351 B
JavaScript
16 lines
No EOL
351 B
JavaScript
Template.body.helpers({
|
|
pageName : function(){
|
|
return Meteor.Router.page();
|
|
}
|
|
});
|
|
|
|
Template.body.created = function(){
|
|
Session.set('currentScroll', null);
|
|
}
|
|
|
|
Template.body.rendered = function(){
|
|
if(currentScroll=Session.get('currentScroll')){
|
|
$('body').scrollTop(currentScroll);
|
|
Session.set('currentScroll', null);
|
|
}
|
|
} |