added description to event-calendar

This commit is contained in:
Jannik Menzel 2025-06-23 11:36:04 +02:00
parent 66afba730e
commit e65d2f4c88

View file

@ -31,6 +31,7 @@
document.getElementById('modalEventTitle').textContent = title;
document.getElementById('modalEventDate').textContent = dateStr;
document.getElementById('modalEventLocation').textContent = location;
document.getElementById('modalEventDescription').textContent = event.extendedProps.description || 'Keine Beschreibung verfügbar';
const modal = new bootstrap.Modal(document.getElementById('eventModal'));
modal.show();
@ -69,6 +70,7 @@
start: next.toJSDate(),
allDay: icalEvent.startDate.isDate,
location: icalEvent.location,
description: icalEvent.description,
});
}
} else {
@ -82,6 +84,7 @@
end: end,
allDay: icalEvent.startDate.isDate,
location: icalEvent.location,
description: icalEvent.description,
});
}
} catch (e) {
@ -112,6 +115,8 @@
<h4 id="modalEventTitle"></h4>
<p><strong>Datum:</strong> <span id="modalEventDate"></span></p>
<p><strong>Ort:</strong> <span id="modalEventLocation"></span></p>
<p><strong>Beschreibung:</strong></p>
<div id="modalEventDescription" style="overflow-wrap: anywhere; word-break: break-word;"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary btn-lg" data-bs-dismiss="modal">Schließen</button>