X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ce42b685b2084fd34270756c88db3d9ff401c2be..79158c50e91b9d8d2a43d45142f2ff6df3a91632:/app/assets/javascripts/index/directions-endpoint.js diff --git a/app/assets/javascripts/index/directions-endpoint.js b/app/assets/javascripts/index/directions-endpoint.js index b3d03cdca..604dcc2b6 100644 --- a/app/assets/javascripts/index/directions-endpoint.js +++ b/app/assets/javascripts/index/directions-endpoint.js @@ -42,6 +42,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch setLatLng(latlng); setInputValueFromLatLng(latlng); endpoint.value = input.val(); + if (e.type === "dragend") getReverseGeocode(); dragCallback(e.type === "drag"); }