This commit is contained in:
2023-07-28 18:25:16 +03:00
parent eaca92106d
commit a0113542c0
5 changed files with 27 additions and 12 deletions

View File

@@ -38,6 +38,7 @@ function searchTown(el){
function selectItemAddrPoint(id, name, ctrl_name,){
let input_list = document.getElementsByName(ctrl_name + '_list')[0];
let tap_txt_cont = document.querySelector("#id_" + ctrl_name);
@@ -62,6 +63,13 @@ function insertSearchList(data, ctrl_name) {
input_list.classList.remove("show");
}
}
function showSearchList() {
let input_list = document.getElementsByClassName('input_list');
if(input_list.classList.contains('show')){
input_list.classList.add("show");
}
}
function onblurInputField(event,el){

View File

@@ -42,11 +42,6 @@ function sendRoute(el){
//cleaning route inputs after selection changes
function OnSelectionChange() {
document.getElementById("id_from_address_point_txt").value = '';
document.getElementById("id_to_address_point_txt").value = '';
document.getElementById("id_from_address_point").value = '';
document.getElementById("id_to_address_point").value = '';
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/user_account/new_route_view/',