2013-04-14 14:51:37 +09:00
|
|
|
// Session variables
|
2015-09-17 14:51:14 +09:00
|
|
|
Session.set('appIsReady', false);
|
2013-02-18 13:38:15 +09:00
|
|
|
|
2014-07-15 07:45:37 +09:00
|
|
|
Meteor.startup(function () {
|
2014-11-19 00:00:09 +08:00
|
|
|
$('#rss-link').attr('title', i18n.t('new_posts'));
|
2014-11-29 11:14:44 +09:00
|
|
|
});
|
|
|
|
|
2015-04-01 11:00:31 +09:00
|
|
|
// AutoForm.debug();
|
|
|
|
|
|
|
|
|
2015-09-17 14:51:14 +09:00
|
|
|
// Global Subscriptions
|
2015-05-01 18:22:00 +02:00
|
|
|
|
2015-09-17 14:51:14 +09:00
|
|
|
Telescope.subscriptions.preload('settings');
|
|
|
|
Telescope.subscriptions.preload('currentUser');
|
2015-04-01 11:00:31 +09:00
|
|
|
|
2015-09-17 14:51:14 +09:00
|
|
|
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));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
2015-04-11 17:03:07 +09:00
|
|
|
|
|
|
|
// Template extension stuff for backwards compatibility
|
|
|
|
|
|
|
|
_.each(templates, function (replacement, original) {
|
|
|
|
Template[replacement].replaces(original);
|
2015-05-01 18:22:00 +02:00
|
|
|
});
|