tetsteststestste

This commit is contained in:
Tomas Dvorak committed 2025-06-17 08:12:55 +02:00
1 parent b4fdf09650
commit 48692ed263
3 files changed
+52 -17

No files matched your search

+4 -3
View File
@@ -1554,11 +1554,12 @@
reservationModal.style.display = 'none';
}
// Ensure modal is defined before using it in the window.onclick handler
const modal = document.getElementById('eventModal');
// Close modal when clicking outside
window.onclick = function(event) {
if (event.target == reservationModal) {
reservationModal.style.display = 'none';
} else if (event.target == modal) {
if (event.target === modal) {
modal.style.display = 'none';
}
}