aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-14 17:55:46 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-14 17:56:05 +0200
commitfd86595f2e271de25a72f723efcba172e744ceae (patch)
tree21abb2b42f08b6806dfb75a3c77a9391c4bd3539 /static
parentGlob, and the whole, now works on 32 bit systems. (diff)
downloadcalp-fd86595f2e271de25a72f723efcba172e744ceae.tar.gz
calp-fd86595f2e271de25a72f723efcba172e744ceae.tar.xz
Fix JS ESC to close popup.
Diffstat (limited to 'static')
-rw-r--r--static/script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/script.js b/static/script.js
index a172a94f..0b87dde5 100644
--- a/static/script.js
+++ b/static/script.js
@@ -158,8 +158,8 @@ function setVar(str, val) {
}
function close_all_popups () {
- for (let popup of document.getElementsByClassName("popup")) {
- popup.classList.remove("show");
+ for (let popup of document.getElementsByClassName("tpd-tooltip")) {
+ popup.getElementsByClassName('close-tooltip')[0].click();
}
}