diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-10-03 14:18:34 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-10-03 14:18:34 +0200 |
commit | 77255304f3d155c7ba0dc1fdf71ad4185fa2f91c (patch) | |
tree | 2cb4269a03676c658043965d5222bbe2ea07c82f | |
parent | 22ff783d866c07d9d5317427fb71d7a528f208c7 (diff) |
#74, Remove readonly flag from search field
-rw-r--r-- | assets/search.js | 1 | ||||
-rw-r--r-- | layouts/partials/docs/search.html | 2 |
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> |