diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-10-05 11:42:20 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-10-07 14:57:12 +0100 |
commit | ef0c07ba692b8046fe865d9849104324d4f40977 (patch) | |
tree | 0bf10401c1465c84b7a32d263b4dbe13710451d4 /web/js | |
parent | 300b6d5942c4c8726febd9681b47e2134e8efbf0 (diff) |
Add state/category filters to base cobrand.
This removes the on map/nearby tabs, replacing them with one combined
list. The styling is moved to the base, so that it is used on mobile
too. A closed option is added to the existing dropdown, and the
base/fixmystreet my templates are also combined. Fixes #1141.
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/map-OpenLayers.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 63ef7324d..3cd54bc23 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -552,13 +552,10 @@ OpenLayers.Format.FixMyStreet = OpenLayers.Class(OpenLayers.Format.JSON, { } else { obj = json; } - var current, current_near; + var current; 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; - } return fms_markers_list( obj.pins, false ); }, CLASS_NAME: "OpenLayers.Format.FixMyStreet" |