diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-07-17 14:43:30 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-08-06 11:33:42 +0200 |
commit | f56f2bf04dd6cd69e95304d5926c1229f2064d3a (patch) | |
tree | 16e07e3da6307baf570b2bfea26c41aa7fc0071d /assets/search.js | |
parent | a3f7d8b9484d14f36e34ce77d5f4b25405bcc01f (diff) |
Block serach bar untill index is loaded
Diffstat (limited to 'assets/search.js')
-rw-r--r-- | assets/search.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/search.js b/assets/search.js index edb81e9..eb38c1d 100644 --- a/assets/search.js +++ b/assets/search.js @@ -10,7 +10,10 @@ function init() { loadScript("{{ "lunr.min.js" | relURL }}") - loadScript("{{ $searchData.RelPermalink }}", search); + loadScript("{{ $searchData.RelPermalink }}", function() { + input.readOnly = false; + search(); + }); input.removeEventListener("focus", init); } |