diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-18 18:28:04 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-18 19:01:56 +0000 |
commit | bbf46b46378749dd884843b182700daec39649c1 (patch) | |
tree | 0b25803988838352723a2a6b6ddd4e57b63e38b5 /web/js/map-OpenLayers.js | |
parent | 8957d112ca7dab397af1a08fbf392f707b5a4dee (diff) |
[Zurich] Add filters to /reports, fix photo bug.
The photo JavaScript needs including in case a report is pulled in.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 1238bb351..7f8ec1755 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -855,10 +855,10 @@ OpenLayers.Protocol.FixMyStreet = OpenLayers.Class(OpenLayers.Protocol.HTTP, { $('#loading-indicator').removeClass('hidden'); $('#loading-indicator').attr('aria-hidden', false); // Pass the values of the category, status, and sort fields as query params + options.params = options.params || {}; $.each({ filter_category: 'filter_categories', status: 'statuses', sort: 'sort' }, function(key, id) { var val = $('#' + id).val(); if (val !== undefined) { - options.params = options.params || {}; options.params[key] = val; } }); |