mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
40 lines
914 B
JavaScript
40 lines
914 B
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(){
|
|
return getCurrentTemplate();
|
|
},
|
|
css: function () {
|
|
return getTemplate('css');
|
|
},
|
|
heroModules: function () {
|
|
return heroModules;
|
|
},
|
|
getTemplate: function () {
|
|
return getTemplate(this.template);
|
|
}
|
|
});
|
|
|
|
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);
|
|
}
|
|
};
|