mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
changed res.send(JSON.stringify()); to res.json(). closes #25
This commit is contained in:
@@ -168,7 +168,8 @@
|
||||
function parse_template() {
|
||||
if (!templates[tpl_url] || !template_data) return;
|
||||
|
||||
document.getElementById('content').innerHTML = templates[tpl_url].parse(JSON.parse(template_data));
|
||||
//document.getElementById('content').innerHTML = templates[tpl_url].parse(JSON.parse(template_data));
|
||||
document.getElementById('content').innerHTML = templates[tpl_url].parse(template_data);
|
||||
|
||||
jQuery('#content [template-variable]').each(function(index, element) {
|
||||
var value = null;
|
||||
@@ -289,9 +290,6 @@
|
||||
})(data, "", template);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if ('undefined' !== typeof window) {
|
||||
window.templates = module.exports;
|
||||
templates.init();
|
||||
|
||||
Reference in New Issue
Block a user