From 100ba7b2faba81a543454e6ed16acb7243f0e20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 27 Apr 2020 22:11:16 +0200 Subject: Remove href completely when popups are enabled. --- static/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/script.js b/static/script.js index c7361a8a..5b4a4b99 100644 --- a/static/script.js +++ b/static/script.js @@ -226,7 +226,10 @@ window.onload = function () { ev = parents_until(popup, {class: "event"}) e = ev.getElementsByClassName("body")[0] e.onclick = new_popup; - e.parentElement.href = "#"; + /* disable scroll to element in side list + if popups are available. + */ + e.parentElement.removeAttribute("href"); } // days.scrollLeft == 0 -- cgit v1.2.3