mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58: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"
|
||||
placeholder="Search"
|
||||
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" />
|
||||
|
Loading…
Reference in New Issue
Block a user