Vulcan/client/views/common/layout.js

31 lines
751 B
JavaScript
Raw Normal View History

2014-07-05 11:24:28 +09:00
Template[getTemplate('layout')].helpers({
pageName : function(){
2014-04-30 16:58:11 -07:00
// getCurrentTemplate();
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');
}
});
2014-07-05 11:24:28 +09:00
Template[getTemplate('layout')].created = function(){
Session.set('currentScroll', null);
}
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);
}
}