0.0.39
change algo get_address_point_ajax
This commit is contained in:
@@ -25,19 +25,25 @@ function searchTown(el){
|
||||
});
|
||||
}
|
||||
|
||||
function selectItemAddrPoint(id, name){
|
||||
// from_address_point
|
||||
let fap_txt_cont = document.querySelector("#id_from_address_point_txt");
|
||||
let fap_cont = document.querySelector("#id_from_address_point");
|
||||
fap_txt_cont.value = name;
|
||||
fap_cont.value = id;
|
||||
function selectItemAddrPoint(id, name, ctrl_name){
|
||||
|
||||
//to_address_point
|
||||
let tap_txt_cont = document.querySelector("#id_to_address_point_txt");
|
||||
let tap_cont = document.querySelector("#id_to_address_point");
|
||||
let fap_txt_cont = document.querySelector("#id_" + ctrl_name);
|
||||
let fap_cont = document.querySelector("#id_" + ctrl_name.slice(0, -4));
|
||||
fap_txt_cont.value = name;
|
||||
fap_cont.value = id;
|
||||
|
||||
tap_txt_cont.value = name;
|
||||
tap_cont.value = id;
|
||||
// // from_address_point
|
||||
// let fap_txt_cont = document.querySelector("#id_from_address_point_txt");
|
||||
// let fap_cont = document.querySelector("#id_from_address_point");
|
||||
// fap_txt_cont.value = name;
|
||||
// fap_cont.value = id;
|
||||
//
|
||||
// //to_address_point
|
||||
// let tap_txt_cont = document.querySelector("#id_to_address_point_txt");
|
||||
// let tap_cont = document.querySelector("#id_to_address_point");
|
||||
//
|
||||
// tap_txt_cont.value = name;
|
||||
// tap_cont.value = id;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user