0.0.51
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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/',
|
||||
|
||||
Reference in New Issue
Block a user