diff options
Diffstat (limited to '')
-rw-r--r-- | static/binders.js | 10 | ||||
-rw-r--r-- | static/vcal.js | 4 |
2 files changed, 12 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; } diff --git a/static/vcal.js b/static/vcal.js index 13c489b8..079b09f8 100644 --- a/static/vcal.js +++ b/static/vcal.js @@ -269,6 +269,10 @@ class VComponent { Object.defineProperty( this, property_name, { + /* TODO there is an assymetry here with .value needing to be called for + get:ed stuff, but set MUST be an unwrapped item. + Fix this. + */ get: function() { return this._values[property_name]; }, |