diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-24 18:23:23 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-24 18:23:23 +0200 |
commit | f07c7df65078811ee4e1b70ec6875c4fbb39b57b (patch) | |
tree | 0eea5c561c158ad860aa325c1d34583b9cac40d7 | |
parent | Use X-HNH-REMOVED to "remove" an event. (diff) | |
download | calp-f07c7df65078811ee4e1b70ec6875c4fbb39b57b.tar.gz calp-f07c7df65078811ee4e1b70ec6875c4fbb39b57b.tar.xz |
Button onclick now actually sends object.
Diffstat (limited to '')
-rw-r--r-- | module/output/html.scm | 7 |
1 files 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 |