diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-15 11:43:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-16 17:31:07 +0100 |
commit | c87f28e944e2511f6f045dd3447e458697379f3a (patch) | |
tree | d8b589e29b4823c223807ebe77ebbf2bb579519c /web/js/map-OpenLayers.js | |
parent | 4bf9d6d6e9700b9db8e2eb27636b7ac119e278b3 (diff) |
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.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 10 |
1 files changed, 0 insertions, 10 deletions
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); |