aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-11 19:49:28 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-11 19:49:28 +0200
commit2e684fd427097965834bd5f1f22196be99b82757 (patch)
tree7b0a3fe4bdeda6b534cb326f3cc0d00cd6286dd3 /module
parentAdd TODO about trimming text. (diff)
downloadcalp-2e684fd427097965834bd5f1f22196be99b82757.tar.gz
calp-2e684fd427097965834bd5f1f22196be99b82757.tar.xz
Allow events to enter edit mode after creation.
Diffstat (limited to 'module')
-rw-r--r--module/html/vcomponent.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/html/vcomponent.scm b/module/html/vcomponent.scm
index ca8a81c2..308f779a 100644
--- a/module/html/vcomponent.scm
+++ b/module/html/vcomponent.scm
@@ -175,6 +175,9 @@
title: "Stäng"
onclick: "close_popup(document.getElementById(this.closest('.popup-container').id))"
class: '("close-tooltip"))
+ ,(btn "🖊️"
+ title: "Redigera"
+ onclick: "place_in_edit_mode(document.getElementById(this.closest('.popup-container').id.substr(5)))")
,(btn "🗑"
title: "Ta bort"
onclick: "remove_event(document.getElementById(this.closest('.popup-container').id.substr(5)))"))