From 088c12d3cf5db0a52ce7e2d25cf90e9d8a1b8251 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Fri, 28 Jul 2023 21:19:32 +0300 Subject: [PATCH] 0.0.56 --- static/js/autocomlite.js | 41 +++++++---------------- templates/blocks/profile/b_new_route.html | 2 +- 2 files changed, 13 insertions(+), 30 deletions(-) diff --git a/static/js/autocomlite.js b/static/js/autocomlite.js index d011f6c..31bdc12 100644 --- a/static/js/autocomlite.js +++ b/static/js/autocomlite.js @@ -64,8 +64,6 @@ function insertSearchList(data, ctrl_name) { } } - - function showSearchList() { let input_list = document.getElementsByClassName('input_list'); if(input_list.classList.contains('show')){ @@ -74,30 +72,15 @@ function showSearchList() { } -// function onblurInputField(event,el){ -// -// // if(el.classList.contains("from_country_container")){ -// let search_list = document.getElementsByName(el.name + '_list')[0]; -// let parent_event = $(event.explicitOriginalTarget).parents('.input_list' ); -// if(!parent_event || parent_event[0] !== search_list){ -// -// search_list.classList.remove('show') -// } -// -// // } -// } -// function onblurInputField(el){ -// -// // if(el.classList.contains("from_country_container")){ -// let search_list = document.getElementsByName(el.name + '_list')[0]; -// // let parent_event = $(event.explicitOriginalTarget).parents('.input_list' ); -// // if(!parent_event || parent_event[0] !== search_list){ -// // -// // search_list.classList.remove('show') -// // } -// if(search_list.classList.contains('show')){ -// search_list.classList.remove('show') -// } -// -// // } -// } \ No newline at end of file +function onblurInputField(event,el){ + + // if(el.classList.contains("from_country_container")){ + let search_list = document.getElementsByName(el.name + '_list')[0]; + let parent_event = $(event.explicitOriginalTarget).parents('.input_list' ); + if(!parent_event || parent_event[0] !== search_list){ + + search_list.classList.remove('show') + } + + // } +} diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index b1a39c4..efc52f5 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -70,7 +70,7 @@