v1.18.x
barisusakli 10 years ago
parent 99dc37bd9c
commit cb5ee2a141

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

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

Loading…
Cancel
Save