[openstreetmap/openstreetmap-website] Unlocateable place now highlighted in red and specified in error message (#1800)

Jamie Guthrie notifications at github.com
Thu Mar 29 22:10:38 UTC 2018


jguthrie100 commented on this pull request.

Changes made

> @@ -86,7 +90,8 @@ OSM.Directions = function (map) {
         endpoint.awaitingGeocode = false;
         endpoint.hasGeocode = true;
         if (json.length === 0) {
-          alert(I18n.t('javascripts.directions.errors.no_place'));
+          alert(I18n.t('javascripts.directions.errors.no_place_with_name', {place: endpoint.value}));
+          input.css("background-color", "rgba(255, 0, 0, 0.5)");

Done

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1800#pullrequestreview-108216372
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180329/290a0eed/attachment-0001.html>


More information about the rails-dev mailing list