Vulcan/client/views/common/body.js

33 lines
742 B
JavaScript
Raw Normal View History

Template.body.helpers({
pageName : function(){
2013-10-06 08:37:17 +09:00
// return Meteor.Router.page();
return "pageNameHere"
2013-02-14 10:17:26 +09:00
},
backgroundColor: function(){
return getSetting('backgroundColor');
2013-02-14 10:17:26 +09:00
},
secondaryColor: function(){
return getSetting('secondaryColor');
2013-02-14 10:17:26 +09:00
},
buttonColor: function(){
return getSetting('buttonColor');
2013-02-14 10:17:26 +09:00
},
headerColor: function(){
return getSetting('headerColor');
2013-02-28 09:19:08 +09:00
},
extraCode: function(){
return getSetting('extraCode');
}
});
Template.body.created = function(){
Session.set('currentScroll', null);
}
Template.body.rendered = function(){
if(currentScroll=Session.get('currentScroll')){
$('body').scrollTop(currentScroll);
Session.set('currentScroll', null);
}
}