mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +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:
@@ -48,6 +48,8 @@
|
||||
}
|
||||
});
|
||||
|
||||
$(window).trigger('action:widgets.loaded', {});
|
||||
require(['hooks'], function (hooks) {
|
||||
hooks.fire('action:widgets.loaded', {});
|
||||
});
|
||||
};
|
||||
}(ajaxify || {}));
|
||||
|
||||
Reference in New Issue
Block a user