0.0.254
This commit is contained in:
@@ -229,12 +229,31 @@ function confirmRemove(el) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function loader_place_ins_boris (el,type=null){
|
||||
if (el){
|
||||
let loader_place = document.querySelector(".abbreviation_airport_in_search")
|
||||
let cur_loader_place = el.nextElementSibling
|
||||
if (type){
|
||||
cur_loader_place.innerHTML = ""
|
||||
} else {
|
||||
if (loader_place){
|
||||
if (cur_loader_place.innerHTML === '<img src="/static/img/svg/loader.svg" style="height: 30px;padding-top: 17px;padding-left: 15px;">'){
|
||||
cur_loader_place.innerHTML = ""
|
||||
} else {
|
||||
cur_loader_place.innerHTML = "<img src='/static/img/svg/loader.svg' style='height: 30px;padding-top: 17px;padding-left: 15px;'>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function searchTown(el){
|
||||
|
||||
if (el.value.length > 0){
|
||||
el.style.background = 'white url("/static/img/svg/loader.svg") no-repeat calc(100% - 15px) center';
|
||||
loader_place_ins_boris(el)
|
||||
|
||||
|
||||
}else {
|
||||
el.style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center';
|
||||
}
|
||||
@@ -269,7 +288,7 @@ function searchTown(el){
|
||||
data: JSON.stringify(get_address_point),
|
||||
success: function(data){
|
||||
el.style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center';
|
||||
|
||||
loader_place_ins_boris(el,"el")
|
||||
|
||||
|
||||
return insertSearchList(data, el.name + '_list');
|
||||
|
||||
Reference in New Issue
Block a user