From 51d198fa477c1d4441662d9749148436947f51bb Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 1 Apr 2013 12:06:11 +0100 Subject: [PATCH] Define static_url in JS env for easier static working. --- app/stores/static/js/gmap.js | 6 +++--- app/vapemap/templates/base.html | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/stores/static/js/gmap.js b/app/stores/static/js/gmap.js index b2cda5e..0772bcd 100644 --- a/app/stores/static/js/gmap.js +++ b/app/stores/static/js/gmap.js @@ -1,7 +1,7 @@ -var store_icon = '/static/img/map_icons/home-2.png' -var online_icon = '/static/img/map_icons/wifi.png' -var geolocation_icon = '/static/img/map_icons/home-2-green.png' +var store_icon = static_url + 'img/map_icons/home-2.png' +var online_icon = static_url + 'img/map_icons/wifi.png' +var geolocation_icon = static_url + '/img/map_icons/home-2-green.png' function lookup_marker(id) { if (id == null || id == 1) { diff --git a/app/vapemap/templates/base.html b/app/vapemap/templates/base.html index 8e29cf5..c194e3c 100644 --- a/app/vapemap/templates/base.html +++ b/app/vapemap/templates/base.html @@ -19,7 +19,8 @@ {% block style %} {% endblock %}