mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 13:08:16 -06:00
added autofocus and onfocus on the searchbar
This commit is contained in:
parent
edd03e785c
commit
dc355e827d
@ -5,7 +5,11 @@
|
|||||||
aria-label="Search"
|
aria-label="Search"
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
value="{{ request.GET.q }}"
|
value=""
|
||||||
|
{% if request.GET.q %}
|
||||||
|
autofocus
|
||||||
|
onfocus="this.value = '{{ request.GET.q|escapejs }}';"
|
||||||
|
{% endif %}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<input name="obj_type" hidden type="text" class="search-obj-type" />
|
<input name="obj_type" hidden type="text" class="search-obj-type" />
|
||||||
|
Loading…
Reference in New Issue
Block a user