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