1.1.55 fix function selectItemAddrPoint on main page
This commit is contained in:
@@ -351,7 +351,7 @@ function selectItemAddrPoint(id, name, ctrl_name, city_DT){
|
||||
let tap_txt_cont = document.querySelector("#id_" + ctrl_name);
|
||||
let local_city_time = document.querySelector(".local_city_time");
|
||||
|
||||
if(ctrl_name === "from_address_point_txt"){
|
||||
if(ctrl_name === "from_address_point_txt" && local_city_time){
|
||||
local_city_time.innerHTML = city_DT;
|
||||
}
|
||||
|
||||
@@ -361,8 +361,11 @@ 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){
|
||||
init_departure_DT()
|
||||
init_arrival_DT()
|
||||
}
|
||||
|
||||
|
||||
if (tap_txt_cont.classList.contains('red_text')){
|
||||
tap_txt_cont.classList.remove('red_text')
|
||||
|
||||
Reference in New Issue
Block a user