updated website

This commit is contained in:
Zehka
2020-07-05 16:50:25 +02:00
parent 6c95d38789
commit 5721a871bd
4 changed files with 22 additions and 24 deletions

View File

@ -110,7 +110,7 @@ Event.prototype.toHTML = function () {
})
}
if (this.isCancelled()) {
if (this.event.component.getFirstPropertyValue("status") == "CANCELLED") {
div_cal.style.textDecoration = 'line-through'
}
@ -129,6 +129,14 @@ function parseIcalData(data) {
events.map(function (e) {
var event = new ICAL.Event(e)
if (event.component.getFirstPropertyValue("status") == "CANCELLED") {
// console.log(event)
if (!(cancelledEvents[event.uid] instanceof Array)) {
cancelledEvents[event.uid] = []
}
cancelledEvents[event.uid].push(event.startDate.toJSDate().getTime())
}
if (event.isRecurring()) {
var expand = event.iterator()
@ -145,16 +153,7 @@ function parseIcalData(data) {
}
}
} else if (eventInTimeRange(event, timeRangeStart, timeRangeStop)) {
if (event.component.getFirstPropertyValue("status") == "CANCELLED") {
console.log(event)
if (!(cancelledEvents[event.uid] instanceof Array)) {
cancelledEvents[event.uid] = []
}
cancelledEvents[event.uid].push(event.startDate.toJSDate().getTime())
} else {
eventList.push(new Event(event.startDate, event))
}
eventList.push(new Event(event.startDate, event))
}
})
}