From d034f3c1447ea91cb4333365ce123d58deb2de0d Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 17 Aug 2017 15:50:07 +0100 Subject: Refactor /around list code to share with others. Both /reports and /my share an ID and a /reports/ajax function, use these also on /around (and share ajax/non-ajax code). --- web/js/map-OpenLayers.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index e7702e764..53535b146 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -861,10 +861,6 @@ OpenLayers.Format.FixMyStreet = OpenLayers.Class(OpenLayers.Format.JSON, { } else { obj = json; } - var current; - if (typeof(obj.current) != 'undefined' && (current = document.getElementById('current'))) { - current.innerHTML = obj.current; - } var reports_list; if (typeof(obj.reports_list) != 'undefined' && (reports_list = document.getElementById('js-reports-list'))) { reports_list.innerHTML = obj.reports_list; -- cgit v1.2.3