From be12a9abd8447ecba3d6468a3ec0059dcf480e93 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Tue, 24 Mar 2015 09:37:45 +0000 Subject: Refresh map as soon as filters are changed on /my and /reports --- web/js/map-OpenLayers.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 5b8deec06..c60ded3f9 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -424,6 +424,12 @@ $(function(){ // to refresh the map when the filter inputs are changed. $(".report-list-filters [type=submit]").hide(); + if (fixmystreet.page == "my" || fixmystreet.page == "reports") { + $(".report-list-filters select").change(function() { + $(this).closest("form").submit(); + }); + } + // Vector layers must be added onload as IE sucks if ($.browser.msie) { $(window).load(fixmystreet_onload); -- cgit v1.2.3