Yes you can use them inside the AMD module but keep in mind once you add an event listener on the window object it will be called everytime there is an action:ajaxify.end. If you don't want it triggered after you leave that page you need to turn it off with $(window).off('eventName', myMethod)
Hook on the server or client side?
Solved
Plugin Development
-
I see that in the list of hooks (https://github.com/NodeBB/NodeBB/wiki/Hooks) there is a division into hooks of server side and client side. what is the meaning of this? Can't use server hook in standard script I put in ACP? And if I enter the code in such an extension: https://github.com/NodeBB/nodebb-plugin-quickstart will it work? Thanks.
@baris -
N Node-BonBon marked this topic as a question on
-
N Node-BonBon has marked this topic as solved on