get rid of app.exposeConfigToTemplates

This commit is contained in:
barisusakli
2015-08-27 19:22:51 -04:00
parent ef65b711de
commit 48512bff6b
5 changed files with 12 additions and 26 deletions

View File

@@ -406,18 +406,6 @@ app.cacheBuster = null;
}
};
app.exposeConfigToTemplates = function() {
$(document).ready(function() {
templates.setGlobal('loggedIn', config.loggedIn);
templates.setGlobal('relative_path', RELATIVE_PATH);
for(var key in config) {
if (config.hasOwnProperty(key)) {
templates.setGlobal('config.' + key, config[key]);
}
}
});
};
function createHeaderTooltips() {
var env = utils.findBootstrapEnvironment();
if (env === 'xs' || env === 'sm') {
@@ -651,8 +639,6 @@ app.cacheBuster = null;
showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1;
app.exposeConfigToTemplates();
socketIOConnect();
app.cacheBuster = config['cache-buster'];