]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions-endpoint.js
Get note text only from textarea within left sidebar
[rails.git] / app / assets / javascripts / index / directions-endpoint.js
index 3ffb9b498723f06363cfe1f94c246e39ec864ca9..7fe4b4ea7f4803053f816d2f9d7986817e798aab 100644 (file)
@@ -27,6 +27,9 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
 
     if (endpoint.geocodeRequest) endpoint.geocodeRequest.abort();
     delete endpoint.geocodeRequest;
 
     if (endpoint.geocodeRequest) endpoint.geocodeRequest.abort();
     delete endpoint.geocodeRequest;
+    removeLatLng();
+    delete endpoint.value;
+    input.val("");
     map.removeLayer(endpoint.marker);
   };
 
     map.removeLayer(endpoint.marker);
   };