Merge remote-tracking branch 'upstream/pull/5088'
This commit is contained in:
commit
9b2db63a95
1 changed files with 2 additions and 6 deletions
|
@ -75,12 +75,8 @@ OSM.Directions = function (map) {
|
|||
|
||||
$(".directions_form .btn-close").on("click", function (e) {
|
||||
e.preventDefault();
|
||||
var route_from = endpoints[0].value;
|
||||
if (route_from) {
|
||||
OSM.router.route("/?query=" + encodeURIComponent(route_from) + OSM.formatHash(map));
|
||||
} else {
|
||||
OSM.router.route("/" + OSM.formatHash(map));
|
||||
}
|
||||
$(".search_form input[name='query']").val(endpoints[0].value);
|
||||
OSM.router.route("/" + OSM.formatHash(map));
|
||||
});
|
||||
|
||||
function formatDistance(m) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue