Vulcan/client/main.js
2014-09-20 16:30:11 +02:00

40 lines
No EOL
901 B
JavaScript

// Session variables
Session.set('initialLoad', true);
Session.set('today', new Date());
Session.set('view', 'top');
Session.set('postsLimit', getSetting('postsPerPage', 10));
Session.set('sessionId', Meteor.default_connection._lastSessionId);
STATUS_PENDING=1;
STATUS_APPROVED=2;
STATUS_REJECTED=3;
adminNav = adminNav.concat([
{
route: 'posts_pending',
label: 'Pending'
},
{
route: 'all-users',
label: 'Users'
},
{
route: 'settings',
label: 'Settings'
},
{
route: 'toolbox',
label: 'Toolbox'
}
]);
// Sort postModules array position using modulePositions as index
postModules = _.sortBy(postModules, function(module){return _.indexOf(modulePositions, module.position)});
postHeading = _.sortBy(postHeading, 'order');
postMeta = _.sortBy(postMeta, 'order');
Meteor.startup(function () {
$('#rss-link').attr('title', i18n.t('New Posts'));
});