mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
31 lines
746 B
JavaScript
31 lines
746 B
JavaScript
// Session variables
|
|
Session.set('appIsReady', false);
|
|
|
|
Meteor.startup(function () {
|
|
$('#rss-link').attr('title', i18n.t('new_posts'));
|
|
});
|
|
|
|
// AutoForm.debug();
|
|
|
|
|
|
// Global Subscriptions
|
|
|
|
Telescope.subscriptions.preload('settings');
|
|
Telescope.subscriptions.preload('currentUser');
|
|
|
|
FlowRouter.subscriptions = function() {
|
|
var flow = this;
|
|
Telescope.subscriptions.forEach(function (sub) {
|
|
if (typeof sub === 'object'){
|
|
flow.register(sub.subName, Meteor.subscribe(sub.subName, sub.subArguments));
|
|
}else{
|
|
flow.register(sub, Meteor.subscribe(sub));
|
|
}
|
|
});
|
|
};
|
|
|
|
// Template extension stuff for backwards compatibility
|
|
|
|
_.each(templates, function (replacement, original) {
|
|
Template[replacement].replaces(original);
|
|
});
|