Vulcan/client/main.js

26 lines
602 B
JavaScript
Raw Normal View History

// Session variables
2013-11-16 17:44:33 +09:00
Session.set('postsLimit', getSetting('postsPerPage', 10));
2014-07-06 14:09:55 +09:00
// Sort postModules array position using modulePositions as index
2014-12-13 17:43:52 +09:00
postModules = _.sortBy(postModules, 'order');
postHeading = _.sortBy(postHeading, 'order');
2014-07-15 07:45:37 +09:00
postMeta = _.sortBy(postMeta, 'order');
Meteor.startup(function () {
$('#rss-link').attr('title', i18n.t('new_posts'));
2014-11-29 11:14:44 +09:00
});
2015-03-22 10:55:19 +09:00
// AutoForm.debug();
Template.onRendered(function () {
var $svgs = this.$('img.svg');
if ($svgs.length) {
SVGInjector($svgs, {
each: function (svg) {
$(svg).css('visibility', 'visible');
}
});
}
});