search: fix triggered search #409

This commit is contained in:
Sören Weber 2024-10-25 18:11:21 +02:00
parent bb9790fb49
commit 641b9c5bbf
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@
{{ partial "heading-pre.html" . }}{{ partial "heading.html" . }}{{ partial "heading-post.html" . }}
<search>
<form action="javascript:executeTriggeredSearch()">
<form action="javascript:window.relearn.executeTriggeredSearch()">
<div class="searchform">
<label class="a11y-only" for="R-search-by-detail">{{ T "Search" }}</label>
<input data-search-input id="R-search-by-detail" class="search-by" name="search-by" type="search" placeholder="{{ T "Search-placeholder" }}">

View file

@ -1 +1 @@
7.1.1+c84ba71c2c388858d47ea183a7df3fda7f2c27b3
7.1.1+bb9790fb496acd74d7e15176487a46b870e0bcb2

View file

@ -16,6 +16,7 @@ function executeInitialSearch(){
}
}
window.relearn.executeTriggeredSearch =
function executeTriggeredSearch(){
var input = document.querySelector('#R-search-by-detail');
if( !input ){