aboutsummaryrefslogtreecommitdiff
path: root/static/binders.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/binders.js')
-rw-r--r--static/binders.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/static/binders.js b/static/binders.js
index 72550191..12d968e4 100644
--- a/static/binders.js
+++ b/static/binders.js
@@ -103,8 +103,14 @@ function bind_wholeday(el, e) {
}
for (let f of ['dtstart', 'dtend']) {
- let d = el.properties[f];
- if (! d) continue; /* dtend optional */
+ let param = el.properties[f];
+ if (! param) continue; /* dtend optional */
+ let d = param.value;
+ if (wholeday.checked) {
+ param.type = 'date';
+ } else {
+ param.type = 'date-time';
+ }
d.isWholeDay = wholeday.checked;
el.properties[f] = d;
}