2014-07-05 11:24:28 +09:00
|
|
|
Template[getTemplate('layout')].helpers({
|
2013-01-16 07:25:39 +09:00
|
|
|
pageName : function(){
|
2014-04-30 16:58:11 -07:00
|
|
|
// getCurrentTemplate();
|
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-28 09:19:08 +09:00
|
|
|
},
|
|
|
|
extraCode: function(){
|
|
|
|
return getSetting('extraCode');
|
|
|
|
}
|
2013-01-16 07:25:39 +09:00
|
|
|
});
|
|
|
|
|
2014-07-05 11:24:28 +09:00
|
|
|
Template[getTemplate('layout')].created = function(){
|
2013-01-16 07:25:39 +09:00
|
|
|
Session.set('currentScroll', null);
|
2012-10-18 15:59:21 +09:00
|
|
|
}
|
|
|
|
|
2014-07-05 11:24:28 +09:00
|
|
|
Template[getTemplate('layout')].rendered = function(){
|
2014-05-23 13:08:40 +09:00
|
|
|
if(currentScroll=Session.get('currentScroll')){
|
|
|
|
$('body').scrollTop(currentScroll);
|
|
|
|
Session.set('currentScroll', null);
|
|
|
|
}
|
|
|
|
}
|