This commit is contained in:
2023-08-15 17:36:46 +03:00
parent e9d4d71c9d
commit 3588bd14e3
3 changed files with 31 additions and 4 deletions

View File

@@ -167,6 +167,8 @@ function confirmRemove(el) {
function searchTown(el){
document.getElementById('id_from_address_point_txt').style.background = 'white url("/static/img/svg/loader.svg") no-repeat calc(100% - 15px) center';
document.getElementById('id_to_address_point_txt').style.background = 'white url("/static/img/svg/loader.svg") no-repeat calc(100% - 15px) center';
if(el.value.length>=3){
let timer = null
@@ -193,8 +195,14 @@ function searchTown(el){
// enctype: 'json',
data: JSON.stringify(get_address_point),
success: function(data){
getNewMessageSession()
return insertSearchList(data, el.name + '_list')
document.getElementById('id_from_address_point_txt').style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center';
document.getElementById('id_to_address_point_txt').style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center';
getNewMessageSession()
return insertSearchList(data, el.name + '_list');
},
error: function (data){