X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7c13b43f316d76226e0812651ea1026c337a5e03..149182f62009012447eadf66dd38aaa1b30090f9:/app/assets/javascripts/routing.js.erb diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index ce8ec93e8..7f18aa472 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -159,10 +159,10 @@ OSM.Routing=function(map,name,jqSearch) { // Route-fetching UI - r.requestRoute=function(final) { + r.requestRoute=function(isFinal) { if (r.route_from && r.route_to) { r.awaitingRoute=true; - r.chosenEngine.getRoute(final,[r.route_from,r.route_to]); + r.chosenEngine.getRoute(isFinal,[r.route_from,r.route_to]); // then, when the route has been fetched, it'll call the engine's gotRoute function } else if (r.route_from==false || r.route_to==false) { // we're waiting for a Nominatim response before we can request a route