mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
only process embedded tpls
This commit is contained in:
@@ -380,7 +380,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
app.load();
|
app.load();
|
||||||
|
|
||||||
$('[data-template]').each(function() {
|
$('[type="text/tpl"][data-template]').each(function() {
|
||||||
templates.cache[$(this).attr('data-template')] = $('<div/>').html($(this).html()).text();
|
templates.cache[$(this).attr('data-template')] = $('<div/>').html($(this).html()).text();
|
||||||
$(this).parent().remove();
|
$(this).parent().remove();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user