Skip to content

Node.js based forum software built for the modern web

only process embedded tpls

barisusakli9c064d8facc4
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js
index 87122bf78c..f7cbe1c26b 100644
--- a/public/src/ajaxify.js
+++ b/public/src/ajaxify.js
@@ -380,7 +380,7 @@ $(document).ready(function() {
app.load();
- $('[data-template]').each(function() {
+ $('[type="text/tpl"][data-template]').each(function() {
templates.cache[$(this).attr('data-template')] = $('<div/>').html($(this).html()).text();
$(this).parent().remove();
});