mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +00:00
search: fix triggered search #409
This commit is contained in:
parent
bb9790fb49
commit
641b9c5bbf
3 changed files with 3 additions and 2 deletions
|
@ -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" }}">
|
||||
|
|
|
@ -1 +1 @@
|
|||
7.1.1+c84ba71c2c388858d47ea183a7df3fda7f2c27b3
|
||||
7.1.1+bb9790fb496acd74d7e15176487a46b870e0bcb2
|
|
@ -16,6 +16,7 @@ function executeInitialSearch(){
|
|||
}
|
||||
}
|
||||
|
||||
window.relearn.executeTriggeredSearch =
|
||||
function executeTriggeredSearch(){
|
||||
var input = document.querySelector('#R-search-by-detail');
|
||||
if( !input ){
|
||||
|
|
Loading…
Reference in a new issue