0.0.73 upd func selectItemAddrPoint

This commit is contained in:
SDE
2023-08-06 17:13:48 +03:00
parent 03104bcd88
commit ba068613fa
2 changed files with 6 additions and 3 deletions

View File

@@ -75,7 +75,8 @@
<input
oninput="searchTown(this)"
onclick="showSearchList(this)"
onblur="setTimeout(()=>onblurInputField(event, this), 200)"
{# onblur="setTimeout(()=>onblurInputField(event, this), 200)"#}
onblur="onblurInputField(event, this)"
onFocus="this.select()"
autocomplete="off"
type="text"
@@ -107,7 +108,9 @@
<input
oninput="searchTown(this)"
onclick="showSearchList(this)"
onblur="setTimeout(()=>onblurInputField(event, this), 200)"
{# onblur="setTimeout(()=>onblurInputField(event, this), 200)"#}
onblur="onblurInputField(event, this)"
onFocus="this.select()"
autocomplete="off"
type="text"

View File

@@ -1,4 +1,4 @@
<div onclick='selectItemAddrPoint({{ id }}, "{{ fullname }}", "{{ ctrl_name }}")' class="autocomplete-result" data-index="{{ index }}">
<div onmousedown='selectItemAddrPoint({{ id }}, "{{ fullname }}", "{{ ctrl_name }}")' class="autocomplete-result" data-index="{{ index }}">
{% if airport_fullname %}<div>{{ airport_fullname|safe }}</div>{% endif %}
<div class="autocomplete-location">{{ country_name }} / {{ city_name }}</div>
</div>