Merge branch 'master' of github.com:designcreateplay/NodeBB

v1.18.x
Julian Lam 12 years ago
commit 92aaeca899

@ -42,11 +42,11 @@
</div> </div>
</li></a> </li></a>
<!-- END topics --> <!-- END topics -->
</ul>
<hr /> <hr />
</ul>
<button id="new_post" class="btn btn-primary btn-large {show_category_features}">New Topic</button> <button id="new_post" class="btn btn-primary btn-large {show_category_features}">New Topic</button>
</div> </div>
<div class="span3 {show_category_features}"> <div class="span3 {show_category_features} category-sidebar">
<div class="sidebar-block img-polaroid"> <div class="sidebar-block img-polaroid">
<div class="block-header"> <div class="block-header">
Recent Replies Recent Replies
@ -100,7 +100,7 @@
]); ]);
if (jQuery('.category-item').length == 0) { if (jQuery('.category-item').length == 0) {
jQuery('.category.row').hide(); jQuery('#topics-container, .category-sidebar').hide();
jQuery('#category-no-topics').show(); jQuery('#category-no-topics').show();
} }

@ -338,7 +338,7 @@ marked.setOptions({
RDB.lpush(schema.topics(tid).posts, pid); RDB.lpush(schema.topics(tid).posts, pid);
// Notify any users looking at the category that a new topic has arrived // Notify any users looking at the category that a new topic has arrived
Topics.get_topics(tid, uid, function(topicData) { Topics.get_topic(tid, uid, function(topicData) {
io.sockets.in('category_' + category_id).emit('event:new_topic', topicData); io.sockets.in('category_' + category_id).emit('event:new_topic', topicData);
}); });
} }

Loading…
Cancel
Save