aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-03 14:18:34 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-10-03 14:18:34 +0200
commit77255304f3d155c7ba0dc1fdf71ad4185fa2f91c (patch)
tree2cb4269a03676c658043965d5222bbe2ea07c82f
parent22ff783d866c07d9d5317427fb71d7a528f208c7 (diff)
#74, Remove readonly flag from search field
-rw-r--r--assets/search.js1
-rw-r--r--layouts/partials/docs/search.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/assets/search.js b/assets/search.js
index b104b41..6799c8d 100644
--- a/assets/search.js
+++ b/assets/search.js
@@ -13,7 +13,6 @@
loadScript("{{ "lunr.min.js" | relURL }}");
loadScript("{{ $searchData.RelPermalink }}", function() {
- input.readOnly = false;
input.required = false;
search();
});
diff --git a/layouts/partials/docs/search.html b/layouts/partials/docs/search.html
index b15ca6d..17a14eb 100644
--- a/layouts/partials/docs/search.html
+++ b/layouts/partials/docs/search.html
@@ -1,6 +1,6 @@
{{ if default true .Site.Params.BookSearch }}
<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>
<ul id="book-search-results"></ul>
</div>