Moved inline styling to stylesheet

This commit is contained in:
J Guthrie 2018-03-29 22:48:39 +01:00
parent becccea034
commit efd17cfbe9
2 changed files with 6 additions and 2 deletions

View file

@ -54,7 +54,7 @@ OSM.Directions = function (map) {
});
input.on("keydown", function() {
input.css("background-color", "#fff");
input.removeClass("highlight_error");
});
input.on("change", function (e) {
@ -91,7 +91,7 @@ OSM.Directions = function (map) {
endpoint.hasGeocode = true;
if (json.length === 0) {
alert(I18n.t('javascripts.directions.errors.no_place', {place: endpoint.value}));
input.css("background-color", "rgba(255, 0, 0, 0.5)");
input.addClass("highlight_error");
return;
}