aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-13 16:24:59 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-13 16:24:59 +0000
commit4c00fe3e6b419fba49ee476138a861433f1b04be (patch)
tree9706b09b504c6bf734db1f6b073fd29961f67fa6 /www/js/map-OpenLayers.js
parent53e1216be3d57e66ce43c909de3c52a8e923e9ed (diff)
move config out to file
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r--www/js/map-OpenLayers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js
index c319576..7eb92c3 100644
--- a/www/js/map-OpenLayers.js
+++ b/www/js/map-OpenLayers.js
@@ -102,7 +102,7 @@ function fixmystreet_onload() {
fixmystreet.bbox_strategy = new OpenLayers.Strategy.BBOX({ ratio: 1 });
pin_layer_options.strategies = [ fixmystreet.bbox_strategy ];
pin_layer_options.protocol = new OpenLayers.Protocol.HTTP({
- url: 'http://matthew.fixmystreet.dev.mysociety.org/ajax',
+ url: CONFIG.FMS_URL + 'ajax',
params: fixmystreet.all_pins ? { all_pins: 1 } : { },
format: new OpenLayers.Format.FixMyStreet()
});
@@ -419,7 +419,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
/*if (fixmystreet.page == 'new') {
return;
}*/
- $.getJSON('http://photek.local:3000/report/new/ajax', {
+ $.getJSON( CONFIG.FMS_URL + 'report/new/ajax', {
latitude: $('#fixmystreet\\.latitude').val(),
longitude: $('#fixmystreet\\.longitude').val()
}, function(data) {