Kalender
* Update (Kalenderstream behandelt nur mehr angezeigte Kalender)
This commit is contained in:
@@ -666,9 +666,19 @@ if (typeof (EventSource) !== 'undefined') {
|
||||
|
||||
source.addEventListener('message', function (e) {
|
||||
// document.getElementById('result').innerHTML += e.data + '<br>';
|
||||
|
||||
let checkbox = $(".form-check-input");
|
||||
let visibleCalendars = [];
|
||||
visibleCalendars.push(0);
|
||||
checkbox.each(function () {
|
||||
if ($(this).prop('checked')) {
|
||||
visibleCalendars.push($(this).data('calendar_id'));
|
||||
}
|
||||
});
|
||||
jsondata = JSON.parse(e.data);
|
||||
jsondata.forEach(function (event) {
|
||||
if (!visibleCalendars.includes(event.calendar_id)) {
|
||||
return;
|
||||
}
|
||||
var cevent = calendar.getEventById(event.cal_events_id);
|
||||
var rights = false;
|
||||
var movable = false;
|
||||
|
||||
Reference in New Issue
Block a user