#74, Remove readonly flag from search field

This commit is contained in:
Alex Shpak 2019-10-03 14:18:34 +02:00
parent 22ff783d86
commit 77255304f3
2 changed files with 1 additions and 2 deletions

View file

@ -13,7 +13,6 @@
loadScript("{{ "lunr.min.js" | relURL }}"); loadScript("{{ "lunr.min.js" | relURL }}");
loadScript("{{ $searchData.RelPermalink }}", function() { loadScript("{{ $searchData.RelPermalink }}", function() {
input.readOnly = false;
input.required = false; input.required = false;
search(); search();
}); });

View file

@ -1,6 +1,6 @@
{{ if default true .Site.Params.BookSearch }} {{ if default true .Site.Params.BookSearch }}
<div class="book-search"> <div class="book-search">
<input type="text" placeholder="Search" id="book-search-input" maxlength="64" readonly /> <input type="text" placeholder="Search" id="book-search-input" maxlength="64" />
<div class="book-search-spinner spinner hidden"></div> <div class="book-search-spinner spinner hidden"></div>
<ul id="book-search-results"></ul> <ul id="book-search-results"></ul>
</div> </div>