From 39aac310920daa1eee340ed8f27537c2bbcf9a06 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 24 Jun 2013 13:32:36 -0400 Subject: [PATCH] minor fix to template rendering --- public/src/forum/admin/topics.js | 2 ++ public/src/templates.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/forum/admin/topics.js b/public/src/forum/admin/topics.js index 322cc75b33..a6c291f957 100644 --- a/public/src/forum/admin/topics.js +++ b/public/src/forum/admin/topics.js @@ -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); }); \ No newline at end of file diff --git a/public/src/templates.js b/public/src/templates.js index 10116f6663..dfa393d348 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -273,7 +273,7 @@ block = parse(data[d], namespace, block); template = setBlock(regex, block, template); - } else { + } else { template = replace(namespace + d, data[d], template); } }