diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 01:44:58 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-05 01:44:58 +0200 |
commit | 04348715ae39c333c267cea768878319076c3f7b (patch) | |
tree | 152114f3934f853dd76d1bd580f2e27528eebef4 | |
parent | Edit tab submit now bound. (diff) | |
download | calp-04348715ae39c333c267cea768878319076c3f7b.tar.gz calp-04348715ae39c333c267cea768878319076c3f7b.tar.xz |
Setting DTEND now works.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/script.js b/static/script.js index 32e19cc4..fa9ef210 100644 --- a/static/script.js +++ b/static/script.js @@ -945,13 +945,13 @@ function bind_properties (el, wide_event=false) { for (let field of ['dtstart', 'dtend']) { get_property(el, `--${field}-time`).push( - [el, (el, v) => { let date = el.properties.dtstart; + [el, (el, v) => { let date = el.properties[field]; let [h,m,s] = v.split(':') date.setHours(Number(h)); date.setMinutes(Number(m)); el.properties[field] = date; }]) get_property(el, `--${field}-date`).push( - [el, (el, v) => { let date = el.properties.dtstart; + [el, (el, v) => { let date = el.properties[field]; let [y,m,d] = v.split('-') date.setYear(Number(y) - 1900); date.setMinutes(Number(m) - 1); |