From: Dan Stowell Date: Sun, 8 Feb 2015 11:11:53 +0000 (+0000) Subject: jsrouting: don't close the smallscreen header until both geocodes entered X-Git-Tag: live~5223^2^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/91dac23254c3674bee23cfd33fbedc2c4380924b?ds=inline jsrouting: don't close the smallscreen header until both geocodes entered --- diff --git a/app/assets/javascripts/index/directions.js.erb b/app/assets/javascripts/index/directions.js.erb index 72299ea1d..7b1ef3c5b 100644 --- a/app/assets/javascripts/index/directions.js.erb +++ b/app/assets/javascripts/index/directions.js.erb @@ -163,6 +163,7 @@ OSM.Directions = function (map) { d = endpoints[1].latlng; if (!o || !d) return; + $("header").addClass("closed"); var precision = OSM.zoomPrecision(map.getZoom()); @@ -295,7 +296,6 @@ OSM.Directions = function (map) { $(".directions_form").on("submit", function(e) { e.preventDefault(); - $("header").addClass("closed"); getRoute(); });