Skip to content

Node.js based forum software built for the modern web

optimized ajaxify to only recurse through script tags; updated so it looks deeper for embedded scripts (ie. within plugin subtemplates)

psychobunny37450ff00c74
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 2887b4a301..01b438b7b0 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -176,7 +176,7 @@ var ajaxify = {};
var scripts = [],
script,
- children_nodes = $(body_el).children(),
+ children_nodes = $(body_el).find('script'),
child,
i;