fixes topics going into wrong category

v1.18.x
Baris Usakli 11 years ago
parent 7613f02eff
commit b5a953b16c

@ -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();
}

Loading…
Cancel
Save