minor fix to template rendering

v1.18.x
Julian Lam 12 years ago
parent 4436dbafe9
commit 39aac31092

@ -95,6 +95,8 @@ socket.on('api:topic.restore', function(response) {
});
socket.on('api:admin.topics.getMore', function(topics) {
topics = JSON.parse(topics);
console.log(topics);
var html = templates.prepare(templates['admin/topics'].blocks['topics']).parse(topics);
console.log(html);
});

@ -273,7 +273,7 @@
block = parse(data[d], namespace, block);
template = setBlock(regex, block, template);
} else {
} else {
template = replace(namespace + d, data[d], template);
}
}

Loading…
Cancel
Save