From 6862c01c6597eeb8f2a95c41c4794f17c4c7f8c9 Mon Sep 17 00:00:00 2001 From: Sacha Greif Date: Wed, 9 Oct 2013 22:21:28 +0900 Subject: [PATCH] cleaning up --- client/helpers/router.js | 15 +++++++++++++++ client/main.js | 21 --------------------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/client/helpers/router.js b/client/helpers/router.js index de4e75c7f..06d095d34 100644 --- a/client/helpers/router.js +++ b/client/helpers/router.js @@ -44,6 +44,7 @@ Sign In 6) Misc Routes -------------------- Settings +Categories Toolbox @@ -86,14 +87,24 @@ Router.map(function() { // Top + // TODO + // New + // TODO + // Best + // TODO + // Pending + // TODO + // Categories + // TODO + // Digest this.route('posts_digest', { @@ -295,6 +306,10 @@ Router.map(function() { this.route('signin'); + // Categories + + this.route('categories'); + // Settings this.route('settings'); diff --git a/client/main.js b/client/main.js index 7368dd92e..570067887 100644 --- a/client/main.js +++ b/client/main.js @@ -2,7 +2,6 @@ Session.set('initialLoad', true); Session.set('currentDate', new Date()); Session.set('categorySlug', null); -Session.set('singlePostReady', false); // Subscriptions @@ -31,26 +30,6 @@ if(Meteor.userId() != null){ Meteor.subscribe('notifications'); } -// Posts -// We have a few subscriptions here, for the various ways we load posts -// -// The advantage is that -// a) we can change pages a lot quicker -// XXX: and we can animate between them (todo) -// b) we know when an individual page is ready - -// Single Post -// Meteor.autorun(function() { -// Meteor.subscribe('singlePost', Session.get('selectedPostId'), function(){ -// Session.set('singlePostReady', true); -// }); -// }); - -// Digest -// Meteor.autorun(function() { -// digestHandle = Meteor.subscribe('postDigest', Session.get('currentDate')); -// }); - // Posts Lists STATUS_PENDING=1; STATUS_APPROVED=2;