diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-27 22:11:16 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-27 22:11:16 +0200 |
commit | 100ba7b2faba81a543454e6ed16acb7243f0e20a (patch) | |
tree | 5bcbe72e01023b5e2692cd02dfeafaf770e3b665 /static/script.js | |
parent | Remove event-debug-html. (diff) | |
download | calp-100ba7b2faba81a543454e6ed16acb7243f0e20a.tar.gz calp-100ba7b2faba81a543454e6ed16acb7243f0e20a.tar.xz |
Remove href completely when popups are enabled.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 |