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