From f23470ddccfdf1db6604c99c58a3803fd5ccab4c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 9 Mar 2016 12:47:37 +0000 Subject: Make sure top of reporting form is shown. If the list of reports was scrolled and then the map was clicked, the form would be pre-scrolled down. It now makes sure to scroll the form to the top. Fixes #787. --- web/js/map-OpenLayers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index f2666787a..cc4959b7b 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -46,6 +46,7 @@ function fixmystreet_update_pin(lonlat) { if (!$('#side-form-error').is(':visible')) { $('#side-form, #site-logo').show(); + window.scrollTo(0, 0); } } -- cgit v1.2.3