From: Richard Fairhurst Date: Thu, 23 Jan 2014 22:53:07 +0000 (+0000) Subject: Remove some repeated-query funkiness X-Git-Tag: live~4217^2~42 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3cfcf18a59ecc759a43d24bea8f6be6e374a83bc Remove some repeated-query funkiness --- diff --git a/app/assets/javascripts/routing.js.erb b/app/assets/javascripts/routing.js.erb index 26d2a8b39..b6bf9f4a0 100644 --- a/app/assets/javascripts/routing.js.erb +++ b/app/assets/javascripts/routing.js.erb @@ -218,9 +218,11 @@ OSM.Routing=function(map,name,jqSearch) { r.close=function() { $("#content").addClass("overlay-sidebar"); - var remove=[r.polyline,r.popup,r.marker_from,r.marker_to]; + r.route_from=r.route_to=null; + $(".query_wrapper.routing input").val(""); + var remove=['polyline','popup','marker_from','marker_to']; for (var i=0; i