}
});
+ input.on("keydown", function() {
+ input.css("background-color", "#fff");
+ });
+
input.on("change", function (e) {
awaitingGeocode = true;
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', {place: endpoint.value}));
+ input.css("background-color", "rgba(255, 0, 0, 0.5)");
return;
}