From 9c064d8facc489d428950b015cef3b009cc3621c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 1 Sep 2016 13:55:53 +0300 Subject: [PATCH] only process embedded tpls --- public/src/ajaxify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')] = $('
').html($(this).html()).text(); $(this).parent().remove(); });