});
input.on("keydown", function() {
- input.removeClass("highlight_error");
+ input.removeClass("error");
});
input.on("change", function (e) {
endpoint.awaitingGeocode = false;
endpoint.hasGeocode = true;
if (json.length === 0) {
+ input.addClass("error");
alert(I18n.t('javascripts.directions.errors.no_place', {place: endpoint.value}));
- input.addClass("highlight_error");
return;
}
border-radius: 0 2px 2px 0;
}
- input.highlight_error {
- background-color: rgba(255, 0, 0, 0.5);
+ input.error {
+ background-color: rgba($red, 0.4);
}
select {