mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
fixed custom_mapping bug
This commit is contained in:
@@ -25,6 +25,7 @@ var ajaxify = {};
|
||||
};
|
||||
|
||||
ajaxify.go = function(url, callback) {
|
||||
|
||||
// leave room and join global
|
||||
app.enter_room('global');
|
||||
|
||||
@@ -39,7 +40,7 @@ var ajaxify = {};
|
||||
jQuery('#content').fadeOut(100);
|
||||
|
||||
load_template(function() {
|
||||
|
||||
console.log('called');
|
||||
exec_body_scripts(content);
|
||||
|
||||
ajaxify.enable();
|
||||
|
||||
@@ -2,7 +2,7 @@ var templates = {};
|
||||
|
||||
(function() {
|
||||
var ready_callback,
|
||||
config;
|
||||
config = {};
|
||||
|
||||
templates.get_custom_map = function(tpl) {
|
||||
return (config['custom_mapping'] && config['custom_mapping'][tpl]) ? config['custom_mapping'][tpl] : tpl;
|
||||
|
||||
Reference in New Issue
Block a user