- alert(I18n.t('javascripts.directions.errors.no_place_with_name', {place: endpoint.value}));
- input.css("background-color", "rgba(255, 0, 0, 0.5)");
+ input.addClass("error");
+ alert(I18n.t('javascripts.directions.errors.no_place', {place: endpoint.value}));