0.0.329 upd logic for from_to_country inputs in b_new_route
This commit is contained in:
@@ -412,10 +412,14 @@ function clearID(el) {
|
|||||||
|
|
||||||
if(el.value !== "" && el.id === 'id_from_address_point_txt' ){
|
if(el.value !== "" && el.id === 'id_from_address_point_txt' ){
|
||||||
document.getElementById('id_from_address_point').value = ''
|
document.getElementById('id_from_address_point').value = ''
|
||||||
el.classList.add('red_text')
|
el.value = ''
|
||||||
|
// el.classList.add('red_text')
|
||||||
} else if(el.value !== "" && el.id === 'id_to_address_point_txt'){
|
} else if(el.value !== "" && el.id === 'id_to_address_point_txt'){
|
||||||
document.getElementById('id_to_address_point').value = ''
|
document.getElementById('id_to_address_point').value = ''
|
||||||
el.classList.add('red_text')
|
el.value = ''
|
||||||
|
|
||||||
|
|
||||||
|
// el.classList.add('red_text')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user