From 5c51efdab39df95f9e5386458f9d6bd18c7b80dd Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 18 Sep 2015 11:27:40 -0400 Subject: [PATCH] globals config.relative_path --- public/src/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/app.js b/public/src/app.js index c54c3a550b..fb28443a99 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -1,5 +1,5 @@ "use strict"; -/*global io, templates, ajaxify, utils, bootbox, RELATIVE_PATH, config, Visibility*/ +/*global io, templates, ajaxify, utils, bootbox, overrides, socket, config, Visibility*/ var app = app || {}; @@ -84,13 +84,13 @@ app.cacheBuster = null; app.logout = function() { require(['csrf'], function(csrf) { - $.ajax(RELATIVE_PATH + '/logout', { + $.ajax(config.relative_path + '/logout', { type: 'POST', headers: { 'x-csrf-token': csrf.get() }, success: function() { - window.location.href = RELATIVE_PATH + '/'; + window.location.href = config.relative_path + '/'; } }); }); @@ -441,7 +441,7 @@ app.cacheBuster = null; return callback(); } - $.getScript(RELATIVE_PATH + '/vendor/jquery/js/jquery-ui-1.10.4.custom.js', callback); + $.getScript(config.relative_path + '/vendor/jquery/js/jquery-ui-1.10.4.custom.js', callback); }; app.showEmailConfirmWarning = function(err) {