You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nodebb/public/src/templates.js

19 lines
431 B
JavaScript

var templates = {};
function loadTemplates(templatesToLoad) {
var timestamp = new Date().getTime();
for (var t in templatesToLoad) {
(function(template) {
$.get('/templates/' + template + '.tpl?v=' + timestamp, function(html) {
templates[template] = html;
});
}(templatesToLoad[t]));
}
}
function templates_init() {
loadTemplates(['register', 'home', 'login', 'reset']);
}
templates_init();