From 0c146caeeff12286d65aa2af6df05eab2cc6c402 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Wed, 20 Dec 2023 14:18:31 +0300 Subject: [PATCH] 0.0.329 upd logic for from_to_country inputs in b_new_route --- static/js/user_profile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 4d33ed2..f27f32c 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -412,10 +412,14 @@ function clearID(el) { if(el.value !== "" && el.id === 'id_from_address_point_txt' ){ 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'){ document.getElementById('id_to_address_point').value = '' - el.classList.add('red_text') + el.value = '' + + + // el.classList.add('red_text') } }