added topics to action:topics.loaded also fire it on category view

This commit is contained in:
barisusakli
2016-01-26 11:35:59 +02:00
parent 2e79ce9860
commit 8220567b5b
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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