Block serach bar untill index is loaded

This commit is contained in:
Alex Shpak
2019-07-17 14:43:30 +02:00
parent a3f7d8b948
commit f56f2bf04d
7 changed files with 14 additions and 13 deletions
+4 -1
View File
@@ -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);
}