From 99a444cdb520d6b977d98b853686a8b757a38632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Fri, 12 Feb 2021 10:51:57 +0100 Subject: [PATCH] Fix search (#16522) --- source/404.html | 15 +++++++++++++++ source/_includes/javascripts/scripts.html | 10 ---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/source/404.html b/source/404.html index d69f20e0d43..2be0d311b63 100644 --- a/source/404.html +++ b/source/404.html @@ -14,3 +14,18 @@ body_id: not_found + + + \ No newline at end of file diff --git a/source/_includes/javascripts/scripts.html b/source/_includes/javascripts/scripts.html index fdc6b001081..11175b4acd0 100644 --- a/source/_includes/javascripts/scripts.html +++ b/source/_includes/javascripts/scripts.html @@ -16,17 +16,7 @@ docsearch({ inputSelector: '#search', debug: false // Set debug to true if you want to inspect the dropdown }); -docsearch({ - apiKey: '{{ site.algolia.api_key }}', - indexName: 'home-assistant', - inputSelector: '#search404', - debug: false // Set debug to true if you want to inspect the dropdown -}); -document.querySelector('.search404-close').addEventListener('click', function(ev) { - ev.preventDefault(); - document.querySelector('#search404').value = ""; -}); document.querySelector('.search .close').addEventListener('click', function(ev) { ev.preventDefault(); document.querySelector('.search-container').style.display = 'none';