Vulcan/client/main.js
2015-03-22 10:55:19 +09:00

26 lines
No EOL
602 B
JavaScript

// Session variables
Session.set('postsLimit', getSetting('postsPerPage', 10));
// Sort postModules array position using modulePositions as index
postModules = _.sortBy(postModules, 'order');
postHeading = _.sortBy(postHeading, 'order');
postMeta = _.sortBy(postMeta, 'order');
Meteor.startup(function () {
$('#rss-link').attr('title', i18n.t('new_posts'));
});
// AutoForm.debug();
Template.onRendered(function () {
var $svgs = this.$('img.svg');
if ($svgs.length) {
SVGInjector($svgs, {
each: function (svg) {
$(svg).css('visibility', 'visible');
}
});
}
});