From c61d24f08e2c3a86bdac0630fd121ae23d3c3763 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Nov 2011 10:48:30 +0000 Subject: [PATCH] Use asset_path to find the arrow icon --- app/assets/javascripts/{map.js => map.js.erb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename app/assets/javascripts/{map.js => map.js.erb} (98%) diff --git a/app/assets/javascripts/map.js b/app/assets/javascripts/map.js.erb similarity index 98% rename from app/assets/javascripts/map.js rename to app/assets/javascripts/map.js.erb index 61393894b..632f31456 100644 --- a/app/assets/javascripts/map.js +++ b/app/assets/javascripts/map.js.erb @@ -87,7 +87,7 @@ function createMap(divName, options) { function getArrowIcon() { var size = new OpenLayers.Size(25, 22); var offset = new OpenLayers.Pixel(-30, -27); - var icon = new OpenLayers.Icon("/images/arrow.png", size, offset); + var icon = new OpenLayers.Icon("<%= asset_path 'arrow.png' %>", size, offset); return icon; } -- 2.39.5