From c87f28e944e2511f6f045dd3447e458697379f3a Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 15 Aug 2016 11:43:11 +0100 Subject: Factor out most inline JavaScript. No need for a special no-map case in the filters case, as all pages now have fixmystreet.page set if needed. --- web/js/map-OpenLayers.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index f110dec26..f202e1392 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -508,16 +508,6 @@ var fixmystreet = fixmystreet || {}; click.activate(); } - // Hide the pin filter submit button. Not needed because we'll use JS - // 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(onload); -- cgit v1.2.3