From f07c7df65078811ee4e1b70ec6875c4fbb39b57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 24 Jul 2020 18:23:23 +0200 Subject: Button onclick now actually sends object. --- module/output/html.scm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/module/output/html.scm b/module/output/html.scm index 2d485791..7d3905d2 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -166,14 +166,11 @@ "unknown")))) ,(btn "×" title: "Stäng" - onclick: (format #f "close_popup(~a)" id) + onclick: (format #f "close_popup(document.getElementById('~a'))" id) class: '("close-tooltip")) ,(btn "🗑" title: "Ta bort" - ;; TODO this only seems to work in firefox. Do it propertly. - ;; Apparently an id gets recieved - ;; as the whole object in js. - onclick: (format #f "remove_event(~a)" id))) + onclick: (format #f "remove_event(document.getElementById('~a'))" id))) ,(tabset (append -- cgit v1.2.3