action:ajaxify.end only in frontend
-
Hi,
I'm writing a plugin and I used in my javascript the hook action:ajaxify.end, but it is called both the frontend and in ACP.
How do I exclude it from the ACP? -
Something like this:
$(window).on('action:ajaxify.end', function(data) { if (data.url.match(/^admin/)) { return; } // your code here });
-
Thanks @psychobunny .
I take this opportunity to congratulate you for NodeBB: really cool!
Copyright © 2024 NodeBB | Contributors