jsrouting: don't close the smallscreen header until both geocodes entered

This commit is contained in:
Dan Stowell 2015-02-08 11:11:53 +00:00
parent 38b9f8f792
commit 91dac23254

View file

@ -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();
});