jsrouting: don't close the smallscreen header until both geocodes entered
This commit is contained in:
parent
38b9f8f792
commit
91dac23254
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue