From f56f2bf04dd6cd69e95304d5926c1229f2064d3a Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 17 Jul 2019 14:43:30 +0200 Subject: Block serach bar untill index is loaded --- assets/search.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'assets/search.js') 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); } -- cgit v1.2.3