diff --git a/static/js/autocomlite.js b/static/js/autocomlite.js index 6a7da15..d011f6c 100644 --- a/static/js/autocomlite.js +++ b/static/js/autocomlite.js @@ -64,6 +64,8 @@ function insertSearchList(data, ctrl_name) { } } + + function showSearchList() { let input_list = document.getElementsByClassName('input_list'); if(input_list.classList.contains('show')){ @@ -72,15 +74,30 @@ 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') - } - - // } -} \ 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') +// } +// +// // } +// } +// 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 diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index e999499..b1a39c4 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -70,13 +70,18 @@ + + + +
{% if form.errors and form.errors.from_address_point %} diff --git a/templates/widgets/w_data_list_txt.html b/templates/widgets/w_data_list_txt.html new file mode 100644 index 0000000..65b1032 --- /dev/null +++ b/templates/widgets/w_data_list_txt.html @@ -0,0 +1,6 @@ + + + +