mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
Feat: Client-side hooks - replace window.trigger (#9679)
* feat/clientside-hooks: replace window.trigger with hooks.fire * feat(clientside-hooks): Move hooks require to the top * fix: simplifying complex logical expression * fix: client-side hook for translator - post-review fixes
This commit is contained in:
@@ -200,7 +200,7 @@ define('forum/topic/posts', [
|
||||
before = repliesSelector.first();
|
||||
}
|
||||
|
||||
$(window).trigger('action:posts.loading', { posts: data.posts, after: after, before: before });
|
||||
hooks.fire('action:posts.loading', { posts: data.posts, after: after, before: before });
|
||||
|
||||
app.parseAndTranslate('topic', 'posts', Object.assign({}, ajaxify.data, data), function (html) {
|
||||
html = html.filter(function () {
|
||||
|
||||
Reference in New Issue
Block a user