2013-01-16 07:25:39 +09:00
|
|
|
Template.body.helpers({
|
|
|
|
pageName : function(){
|
|
|
|
return Meteor.Router.page();
|
2013-02-14 10:17:26 +09:00
|
|
|
},
|
|
|
|
backgroundColor: function(){
|
2013-02-16 13:05:32 +09:00
|
|
|
return getSetting('backgroundColor');
|
2013-02-14 10:17:26 +09:00
|
|
|
},
|
|
|
|
secondaryColor: function(){
|
2013-02-16 13:05:32 +09:00
|
|
|
return getSetting('secondaryColor');
|
2013-02-14 10:17:26 +09:00
|
|
|
},
|
|
|
|
buttonColor: function(){
|
2013-02-16 13:05:32 +09:00
|
|
|
return getSetting('buttonColor');
|
2013-02-14 10:17:26 +09:00
|
|
|
},
|
|
|
|
headerColor: function(){
|
2013-02-16 13:05:32 +09:00
|
|
|
return getSetting('headerColor');
|
2013-02-14 10:17:26 +09:00
|
|
|
},
|
2013-01-16 07:25:39 +09:00
|
|
|
});
|
|
|
|
|
2012-10-18 15:59:21 +09:00
|
|
|
Template.body.created = function(){
|
2013-01-16 07:25:39 +09:00
|
|
|
Session.set('currentScroll', null);
|
2012-10-18 15:59:21 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
Template.body.rendered = function(){
|
|
|
|
if(currentScroll=Session.get('currentScroll')){
|
|
|
|
$('body').scrollTop(currentScroll);
|
2012-10-19 12:33:47 +09:00
|
|
|
Session.set('currentScroll', null);
|
2013-01-16 07:25:39 +09:00
|
|
|
}
|
2012-10-18 15:59:21 +09:00
|
|
|
}
|