aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-google.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-17 20:00:02 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-17 20:00:02 +0100
commit3ae492fdba798fb3e3bbeddc8cc7aaabc5210db5 (patch)
treef30759ccf024b10d87df3fec9b801a775ef4caf5 /web/js/map-google.js
parent9495fe66792ce9733037e812f237bb2ccd7d96e6 (diff)
parent17e389222fd65b15a4004df28aacdc4c45bfd443 (diff)
Merge branch 'js-you-only-load-once'
Diffstat (limited to 'web/js/map-google.js')
-rw-r--r--web/js/map-google.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/web/js/map-google.js b/web/js/map-google.js
index 8819697eb..596e4f8ee 100644
--- a/web/js/map-google.js
+++ b/web/js/map-google.js
@@ -114,12 +114,9 @@ fixmystreet.maps = {};
/* Pan data handler */
function read_pin_json(obj) {
- var current, current_near;
- if (typeof(obj.current) != 'undefined' && (current = document.getElementById('current'))) {
- current.innerHTML = obj.current;
- }
- if (typeof(obj.current_near) != 'undefined' && (current_near = document.getElementById('current_near'))) {
- current_near.innerHTML = obj.current_near;
+ var reports_list;
+ if (typeof(obj.reports_list) != 'undefined' && (reports_list = document.getElementById('js-reports-list'))) {
+ reports_list.innerHTML = obj.reports_list;
}
fixmystreet.markers = markers_list( obj.pins, false );
}