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:
Anton Grigoryev
2021-08-13 23:58:37 +03:00
committed by GitHub
parent a850dd2e34
commit 342503e07a
30 changed files with 135 additions and 98 deletions

View File

@@ -44,7 +44,7 @@ define('forum/topic', [
Topic.init = function () {
var tid = ajaxify.data.tid;
currentUrl = ajaxify.currentPage;
$(window).trigger('action:topic.loading');
hooks.fire('action:topic.loading');
app.enterRoom('topic_' + tid);