diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-11 19:49:28 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-08-11 19:49:28 +0200 |
commit | 2e684fd427097965834bd5f1f22196be99b82757 (patch) | |
tree | 7b0a3fe4bdeda6b534cb326f3cc0d00cd6286dd3 /static | |
parent | Add TODO about trimming text. (diff) | |
download | calp-2e684fd427097965834bd5f1f22196be99b82757.tar.gz calp-2e684fd427097965834bd5f1f22196be99b82757.tar.xz |
Allow events to enter edit mode after creation.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 1 | ||||
-rw-r--r-- | static/style.css | 2 |
2 files changed, 2 insertions, 1 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 */ diff --git a/static/style.css b/static/style.css index 193cc1fb..3a2a8c5d 100644 --- a/static/style.css +++ b/static/style.css @@ -509,7 +509,7 @@ along with their colors. overflow: visible; } -.event input { +.popup input { white-space: initial; border: 1px solid gray; max-width: 100%; |