]> git.openstreetmap.org Git - rails.git/commitdiff
Remove error class when right-click-selecting destination
authorJ Guthrie <jamie.guthrie@gmail.com>
Sun, 15 Apr 2018 17:05:25 +0000 (18:05 +0100)
committerJ Guthrie <jamie.guthrie@gmail.com>
Sun, 15 Apr 2018 17:05:25 +0000 (18:05 +0100)
app/assets/javascripts/index/directions.js

index 2b3319f8f35c1e95279b88af763c5b348ac78521..8a80328cc05c3767813ac7ff3823330001095d9e 100644 (file)
@@ -69,6 +69,7 @@ OSM.Directions = function (map) {
     endpoint.setValue = function(value, latlng) {
       endpoint.value = value;
       delete endpoint.latlng;
+      input.removeClass("error");
       input.val(value);
 
       if (latlng) {