This commit is contained in:
barisusakli
2015-01-19 16:38:45 -05:00
parent 99dc37bd9c
commit cb5ee2a141
2 changed files with 3 additions and 2 deletions

View File

@@ -364,7 +364,7 @@ app.uid = null;
}
};
function exposeConfigToTemplates() {
app.exposeConfigToTemplates = function() {
$(document).ready(function() {
templates.setGlobal('loggedIn', config.loggedIn);
templates.setGlobal('relative_path', RELATIVE_PATH);
@@ -599,7 +599,7 @@ app.uid = null;
showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1;
exposeConfigToTemplates();
app.exposeConfigToTemplates();
socketIOConnect();

View File

@@ -42,6 +42,7 @@ define('forum/account/settings', ['forum/account/header'], function(header) {
config[key] = newSettings[key];
}
}
app.exposeConfigToTemplates();
if (parseInt(app.uid, 10) === parseInt(ajaxify.variables.get('theirid'), 10)) {
ajaxify.refresh();