From 4815e4cb83dbce4d76c1c2c209f266c203ae5609 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 7 May 2014 12:48:50 +0200 Subject: [PATCH] Define rootUrl in js_include So /localize is working not matter which alias we use, even on the front page --- public/js/vroom.js | 2 +- templates/default/join.html.ep | 5 ----- templates/default/js_include.html.ep | 7 +++++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 09cb7cc..9439ee3 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -35,7 +35,7 @@ var locale = { // Localize the strings we need $.ajax({ - url: '/localize', + url: rootUrl + 'localize', type: 'POST', dataType: 'json', data: { diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index d7db7a9..5f39752 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -162,11 +162,6 @@ %= include 'js_include'