Node.js based forum software built for the modern web
fix: bug where `action:ajaxify.end` was never called if there were no init scripts
Julian Lamfaf596037395
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.jsindex 1de05c9e49..d38bab6d71 100644--- a/public/src/ajaxify.js+++ b/public/src/ajaxify.js@@ -342,6 +342,10 @@ ajaxify = window.ajaxify || {};// Require and parse modulesvar outstanding = data.scripts.length;+ if (!outstanding) {+ return callback();+ }+if (outstanding && !app.flags.actionScriptLoadDeprecation) {console.group('Deprecation Notice');console.warn('The "action:script.load" event has been deprecated and will be removed in NodeBB v1.18.0. Please attach a listener to the "static:script.init" client-side hook instead');