added code to remove fields that are not passed in for templates

v1.18.x
psychobunny 12 years ago
parent 187d5a101a
commit baecab84de

@ -145,6 +145,11 @@ var templates = {};
}
}
if (namespace) {
var regex = new RegExp("{" + namespace + "[^]*?}", 'g');
template = template.replace(regex, '');
}
return template;
})(data, "", template);

Loading…
Cancel
Save