Skip to content

Commit

Permalink
closes #2632
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jan 19, 2015
1 parent 99dc37b commit cb5ee2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/app.js
Expand Up @@ -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);
Expand Down Expand Up @@ -599,7 +599,7 @@ app.uid = null;

showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1;

exposeConfigToTemplates();
app.exposeConfigToTemplates();

socketIOConnect();

Expand Down
1 change: 1 addition & 0 deletions public/src/client/account/settings.js
Expand Up @@ -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();
Expand Down

0 comments on commit cb5ee2a

Please sign in to comment.