From 541883de2b6fe231db3bbf1c574f3880dd147a63 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Sat, 4 May 2019 09:27:49 +0200
Subject: [PATCH] Debug header javascript

---
 scipost/templates/scipost/header.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scipost/templates/scipost/header.html b/scipost/templates/scipost/header.html
index ee721cb5d..75d815534 100644
--- a/scipost/templates/scipost/header.html
+++ b/scipost/templates/scipost/header.html
@@ -47,11 +47,12 @@
 
          document.getElementById("header-search-close-btn").addEventListener("click", function(event){
              var x = document.getElementById("header-search-form");
-             x.style.display = "none"
+             x.style.display = "none";
          });
 
          if (document.documentElement.clientWidth <= 768) {
              // Force-close if form is prefilled.
+             var x = document.getElementById("header-search-form");
              x.style.display = "none";
          }
      }
-- 
GitLab