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