Merge remote-tracking branch 'upstream/pull/4877'
This commit is contained in:
commit
2315885586
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ OSM.Search = function (map) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".search_form a.button.switch_link").on("click", function (e) {
|
$(".search_form a.btn.switch_link").on("click", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var query = $(e.target).parent().parent().find("input[name=query]").val();
|
var query = $(this).closest("form").find("input[name=query]").val();
|
||||||
if (query) {
|
if (query) {
|
||||||
OSM.router.route("/directions?from=" + encodeURIComponent(query) + OSM.formatHash(map));
|
OSM.router.route("/directions?from=" + encodeURIComponent(query) + OSM.formatHash(map));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue