aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
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 /static/script.js
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 '')
-rw-r--r--static/script.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index be19dc13..37f86549 100644
--- a/static/script.js
+++ b/static/script.js
@@ -428,6 +428,7 @@ function place_in_edit_mode (event) {
let input = makeElement ('input', {
type: "time",
required: true,
+ value: field.innerText,
onchange: function (e) {
/* Only update datetime when the input is filled out */