diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-13 16:24:59 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-13 16:24:59 +0000 |
commit | c18dc4eae8a42ac90b4eceb74af5d347f9d868ec (patch) | |
tree | 0a6aed16ec2e7a9d6ac70387cf3301de87d85d56 /phonegap/www/js/map-OpenLayers.js | |
parent | c8980b86f8dfc37ede19463d7d126bc49e5cb2c4 (diff) |
move config out to file
Diffstat (limited to 'phonegap/www/js/map-OpenLayers.js')
-rw-r--r-- | phonegap/www/js/map-OpenLayers.js | 4 |
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) { |