aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-google.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-15 18:25:08 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-11-02 18:06:22 +0000
commit660631a3ff063e6378c9838f40c1d9bfa8dcfd43 (patch)
tree0fc54ec7c71e0923376c1abbfea87756521c8e40 /web/js/map-google.js
parent64a24f1d9bf251cc57d363e7bf57d4218a5e2cb8 (diff)
Have /around ajax use same format as others.
Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
Diffstat (limited to 'web/js/map-google.js')
-rw-r--r--web/js/map-google.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/map-google.js b/web/js/map-google.js
index 596e4f8ee..6be2a0232 100644
--- a/web/js/map-google.js
+++ b/web/js/map-google.js
@@ -127,12 +127,13 @@ fixmystreet.maps = {};
b_ne = b.getNorthEast(),
bbox = b_sw.lng() + ',' + b_sw.lat() + ',' + b_ne.lng() + ',' + b_ne.lat(),
params = {
+ ajax: 1,
bbox: bbox
};
if (fixmystreet.all_pins) {
params.all_pins = 1;
}
- $.getJSON('/ajax', params, read_pin_json);
+ $.getJSON('/around', params, read_pin_json);
}
function map_initialize() {