fixed custom_mapping bug

This commit is contained in:
psychobunny
2013-05-07 17:08:44 +00:00
parent 9ad1b572aa
commit 6ebc5398a7
2 changed files with 3 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;