mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
fixes topics going into wrong category
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
var Category = {},
|
var Category = {};
|
||||||
cid = templates.get('category_id');
|
|
||||||
Category.init = function() {
|
Category.init = function() {
|
||||||
var room = 'category_' + cid,
|
var cid = templates.get('category_id'),
|
||||||
|
room = 'category_' + cid,
|
||||||
twitterEl = document.getElementById('twitter-intent'),
|
twitterEl = document.getElementById('twitter-intent'),
|
||||||
facebookEl = document.getElementById('facebook-share'),
|
facebookEl = document.getElementById('facebook-share'),
|
||||||
googleEl = document.getElementById('google-share'),
|
googleEl = document.getElementById('google-share'),
|
||||||
@@ -104,7 +105,7 @@ define(function () {
|
|||||||
topic.hide().fadeIn('slow');
|
topic.hide().fadeIn('slow');
|
||||||
}
|
}
|
||||||
|
|
||||||
socket.emit('api:categories.getRecentReplies', cid);
|
socket.emit('api:categories.getRecentReplies', templates.get('category_id'));
|
||||||
$('#topics-container span.timeago').timeago();
|
$('#topics-container span.timeago').timeago();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user