aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap/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
commitc18dc4eae8a42ac90b4eceb74af5d347f9d868ec (patch)
tree0a6aed16ec2e7a9d6ac70387cf3301de87d85d56 /phonegap/www/js/map-OpenLayers.js
parentc8980b86f8dfc37ede19463d7d126bc49e5cb2c4 (diff)
move config out to file
Diffstat (limited to 'phonegap/www/js/map-OpenLayers.js')
-rw-r--r--phonegap/www/js/map-OpenLayers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phonegap/www/js/map-OpenLayers.js b/phonegap/www/js/map-OpenLayers.js
index c3195761e..7eb92c3b1 100644
--- a/phonegap/www/js/map-OpenLayers.js
+++ b/phonegap/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) {