diff --git a/static/js/user_profile.js b/static/js/user_profile.js index f926260..55e7154 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -361,8 +361,13 @@ function selectItemAddrPoint(id, name, ctrl_name, city_DT){ let tap_cont = document.querySelector("#id_" + ctrl_name.slice(0, -4)); tap_cont.value = id; - if (local_city_time){ + if (local_city_time && ctrl_name === "from_address_point_txt"){ init_departure_DT() + + } + + if (local_city_time && ctrl_name === "to_address_point_txt"){ + init_arrival_DT() }