aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 22:11:16 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 22:11:16 +0200
commit100ba7b2faba81a543454e6ed16acb7243f0e20a (patch)
tree5bcbe72e01023b5e2692cd02dfeafaf770e3b665
parentRemove event-debug-html. (diff)
downloadcalp-100ba7b2faba81a543454e6ed16acb7243f0e20a.tar.gz
calp-100ba7b2faba81a543454e6ed16acb7243f0e20a.tar.xz
Remove href completely when popups are enabled.
-rw-r--r--static/script.js5
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