isCancelled is broken, asking directly

This commit is contained in:
Bandie 2020-05-22 03:41:25 +02:00
parent 445842c991
commit b088c16e2d
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ Event.prototype.toHTML = function () {
})
}
if (this.isCancelled()) {
if (this.component.getFirstPropertyValue("status") == "CANCELLED") {
div_cal.style.textDecoration = 'line-through'
}
@ -130,7 +130,7 @@ function parseIcalData(data) {
events.map(function (e) {
var event = new ICAL.Event(e)
if (event.component.getFirstPropertyValue("status") == "CANCELLED") {
console.log(event)
// console.log(event)
if (!(cancelledEvents[event.uid] instanceof Array)) {
cancelledEvents[event.uid] = []
}