From b088c16e2d885941626ef8a98414908394e78939 Mon Sep 17 00:00:00 2001 From: Bandie Date: Fri, 22 May 2020 03:41:25 +0200 Subject: [PATCH] isCancelled is broken, asking directly --- web/js/cal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/cal.js b/web/js/cal.js index ec8e112..55f3e58 100644 --- a/web/js/cal.js +++ b/web/js/cal.js @@ -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] = [] }