diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-14 17:55:46 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-05-14 17:56:05 +0200 |
commit | fd86595f2e271de25a72f723efcba172e744ceae (patch) | |
tree | 21abb2b42f08b6806dfb75a3c77a9391c4bd3539 /static | |
parent | Glob, and the whole, now works on 32 bit systems. (diff) | |
download | calp-fd86595f2e271de25a72f723efcba172e744ceae.tar.gz calp-fd86595f2e271de25a72f723efcba172e744ceae.tar.xz |
Fix JS ESC to close popup.
Diffstat (limited to 'static')
-rw-r--r-- | static/script.js | 4 |
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(); } } |