mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
closes #2061
This commit is contained in:
@@ -116,6 +116,15 @@ define('forum/recent', ['forum/infinitescroll'], function(infinitescroll) {
|
||||
};
|
||||
|
||||
Recent.onTopicsLoaded = function(templateName, topics, showSelect, callback) {
|
||||
|
||||
topics = topics.filter(function(topic) {
|
||||
return !$('#topics-container li[data-tid=' + topic.tid + ']').length;
|
||||
});
|
||||
|
||||
if (!topics.length) {
|
||||
callback();
|
||||
}
|
||||
|
||||
infinitescroll.parseAndTranslate(templateName, 'topics', {topics: topics, showSelect: showSelect}, function(html) {
|
||||
$('#category-no-topics').remove();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user