From fd86595f2e271de25a72f723efcba172e744ceae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 14 May 2020 17:55:46 +0200 Subject: Fix JS ESC to close popup. --- static/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static') 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(); } } -- cgit v1.2.3