mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-03 22:30:58 +01:00
added topics to action:topics.loaded also fire it on category view
This commit is contained in:
@@ -46,7 +46,7 @@ define('forum/account/topics', ['forum/account/header', 'forum/infinitescroll'],
|
||||
html.find('.timeago').timeago();
|
||||
app.createUserTooltips();
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
$(window).trigger('action:topics.loaded');
|
||||
$(window).trigger('action:topics.loaded', {topics: topics});
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -334,6 +334,8 @@ define('forum/category', [
|
||||
app.createUserTooltips();
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
|
||||
$(window).trigger('action:topics.loaded', {topics: data.topics});
|
||||
|
||||
callback();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -117,7 +117,7 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function(infinite
|
||||
html.find('.timeago').timeago();
|
||||
app.createUserTooltips();
|
||||
utils.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||
$(window).trigger('action:topics.loaded');
|
||||
$(window).trigger('action:topics.loaded', {topics: topics});
|
||||
callback();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user