mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
cal refresh
This commit is contained in:
@@ -1466,10 +1466,12 @@
|
||||
statusContainer.classList.add('hidden');
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
// Initialize calendar
|
||||
const calendarEl = document.getElementById('calendar');
|
||||
let selectedVehicle = 'all';
|
||||
let calendar; // Make calendar global
|
||||
|
||||
|
||||
// Fix calendar initialization
|
||||
const calendarConfig = {
|
||||
@@ -1516,6 +1518,8 @@
|
||||
|
||||
calendar = new FullCalendar.Calendar(calendarEl, calendarConfig);
|
||||
calendar.render();
|
||||
calendar.refetchEvents();
|
||||
updateReservationsList();
|
||||
|
||||
// Add vehicle filter click handlers
|
||||
document.querySelectorAll('.vehicle-filter-btn').forEach(btn => {
|
||||
|
||||
Reference in New Issue
Block a user