From b23f379db05f853dd2d044049e30e333dca9de1e Mon Sep 17 00:00:00 2001 From: ArtemB Date: Thu, 5 Sep 2024 11:26:50 +0300 Subject: [PATCH] 1.2.5 new init for calendar in create_route TRI-247 --- static/js/user_profile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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() }