Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4897'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jun 14, 2024
2 parents 18631fa + 6c3c4f2 commit 84aa7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/index/directions.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ OSM.Directions = function (map) {
});

input.on("keydown", function () {
input.removeClass("error");
input.removeClass("is-invalid");
});

input.on("change", function (e) {
Expand All @@ -81,7 +81,7 @@ OSM.Directions = function (map) {
endpoint.setValue = function (value, latlng) {
endpoint.value = value;
delete endpoint.latlng;
input.removeClass("error");
input.removeClass("is-invalid");
input.val(value);

if (latlng) {
Expand All @@ -106,7 +106,7 @@ OSM.Directions = function (map) {
endpoint.awaitingGeocode = false;
endpoint.hasGeocode = true;
if (json.length === 0) {
input.addClass("error");
input.addClass("is-invalid");
alert(I18n.t("javascripts.directions.errors.no_place", { place: endpoint.value }));
return;
}
Expand Down

0 comments on commit 84aa7f4

Please sign in to comment.