Hotfix: Add hidden submit btn for nojs searches

With javascript disabled, searches could not be submitted on the results
page using the "Enter" key. Adding a hidden submit button to the header
template resolves this issue.
main
Ben Busby 2021-01-19 11:11:13 -05:00
parent 406e236666
commit 5c69283e80
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@
border: {{ '1px solid #685e79' if dark_mode else '' }}"
spellcheck="false" type="text" value="{{ query }}">
<input name="tbm" value="{{ search_type }}" style="display: none">
<input type="submit" style="display: none;">
<div class="sc"></div>
</div>
</div>
@ -38,6 +39,7 @@
color: {{ '#685e79' if dark_mode else '#000' }};
border: {{ '1px solid #685e79' if dark_mode else '' }}">
<input name="tbm" value="{{ search_type }}" style="display: none">
<input type="submit" style="display: none;">
<div class="sc"></div>
</div>
</div>