mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 20:42:59 +00:00
tetsteststestste
This commit is contained in:
+4
-3
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user