Node.js based forum software built for the modern web
fixes topics going into wrong category
Baris Usaklib5a953b16ce6
diff --git a/public/src/forum/category.js b/public/src/forum/category.jsindex a5bfc4a250..6837399cea 100644--- a/public/src/forum/category.js+++ b/public/src/forum/category.js@@ -1,8 +1,9 @@define(function () {- var Category = {},- cid = templates.get('category_id');+ var Category = {};+Category.init = function() {- var room = 'category_' + cid,+ var cid = templates.get('category_id'),+ room = 'category_' + cid,twitterEl = document.getElementById('twitter-intent'),facebookEl = document.getElementById('facebook-share'),googleEl = document.getElementById('google-share'),@@ -104,7 +105,7 @@ define(function () {topic.hide().fadeIn('slow');}- socket.emit('api:categories.getRecentReplies', cid);+ socket.emit('api:categories.getRecentReplies', templates.get('category_id'));$('#topics-container span.timeago').timeago();}