]> git.openstreetmap.org Git - rails.git/commit
Rename geocodeCallback to changeCallback, call it from latlon setValue
authorAnton Khorev <tony29@yandex.ru>
Sun, 11 Aug 2024 03:47:38 +0000 (06:47 +0300)
committerAnton Khorev <tony29@yandex.ru>
Thu, 15 Aug 2024 09:00:31 +0000 (12:00 +0300)
commitec6789920cdb3548155ff676af893ee277ee7bfa
treec2b44b20e20d6618416fef05e00496e2feaba81a
parent953d8b4b59e8b194bf83b094ecfd9f5e368a04b8
Rename geocodeCallback to changeCallback, call it from latlon setValue

endpoint.setValue always calls changeCallback on its successful completion, with geocoding or without. This allows to decide when to call getRoute entirely from callbacks and event listeners.
app/assets/javascripts/index/directions-endpoint.js
app/assets/javascripts/index/directions.js