mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
46 lines
No EOL
1.1 KiB
JavaScript
46 lines
No EOL
1.1 KiB
JavaScript
Template[getTemplate('layout')].helpers({
|
|
mobile_nav: function () {
|
|
return getTemplate('mobile_nav');
|
|
},
|
|
nav: function () {
|
|
return getTemplate('nav');
|
|
},
|
|
error: function () {
|
|
return getTemplate('error');
|
|
},
|
|
notifications: function () {
|
|
return getTemplate('notifications');
|
|
},
|
|
footer: function () {
|
|
return getTemplate('footer');
|
|
},
|
|
pageName : function(){
|
|
// getCurrentTemplate();
|
|
},
|
|
backgroundCSS: function(){
|
|
return getSetting('backgroundCSS');
|
|
},
|
|
secondaryColor: function(){
|
|
return getSetting('secondaryColor');
|
|
},
|
|
buttonColor: function(){
|
|
return getSetting('buttonColor');
|
|
},
|
|
headerColor: function(){
|
|
return getSetting('headerColor');
|
|
},
|
|
extraCode: function(){
|
|
return getSetting('extraCode');
|
|
}
|
|
});
|
|
|
|
Template[getTemplate('layout')].created = function(){
|
|
Session.set('currentScroll', null);
|
|
}
|
|
|
|
Template[getTemplate('layout')].rendered = function(){
|
|
if(currentScroll=Session.get('currentScroll')){
|
|
$('body').scrollTop(currentScroll);
|
|
Session.set('currentScroll', null);
|
|
}
|
|
} |