mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 03:51:26 +01:00
deprecated loadTemplates client-side as well
This commit is contained in:
@@ -46,14 +46,6 @@
|
||||
return template;
|
||||
};
|
||||
|
||||
function loadTemplates(templatesToLoad, customTemplateDir) {
|
||||
$.when($.getJSON(RELATIVE_PATH + '/templates/config.json'), $.getJSON(RELATIVE_PATH + '/api/get_templates_listing')).done(function (config_data, templates_data) {
|
||||
config = config_data[0];
|
||||
available_templates = templates_data[0];
|
||||
templates.ready();
|
||||
});
|
||||
}
|
||||
|
||||
templates.render = function(filename, options, fn) {
|
||||
if ('function' === typeof options) {
|
||||
fn = options, options = false;
|
||||
@@ -86,7 +78,6 @@
|
||||
};
|
||||
|
||||
templates.preload_template = function(tpl_name, callback) {
|
||||
|
||||
if(templates[tpl_name]) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user