mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 11:01:38 -05:00
23 lines
No EOL
671 B
JavaScript
23 lines
No EOL
671 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;
|
|
|
|
// 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'));
|
|
});
|
|
|
|
// AutoForm.debug();
|