Fix refresh Appointments MONTH calendarView : current2active

Fix undisplayed appointments if not in this current month
and if moved by D&D on prev/next month days view (displace OK),
but after auto refresh, appointment disapear in view...
After little fear, it exist in db :)
Need to choose prev/next month (where is moved) to see it.

see https://fullcalendar.io/docs/view-object
This commit is contained in:
Thomas Ingles 2024-04-29 23:45:29 +02:00
parent 0b5eacb109
commit 4f028d8c44
No known key found for this signature in database
GPG key ID: 02A5671B95EAD354

View file

@ -56,8 +56,8 @@ App.Utils.CalendarDefaultView = (function () {
$calendar, $calendar,
$selectFilterItem.val(), $selectFilterItem.val(),
$selectFilterItem.find('option:selected').attr('type'), $selectFilterItem.find('option:selected').attr('type'),
calendarView.currentStart, calendarView.activeStart,
calendarView.currentEnd, calendarView.activeEnd,
); );
}); });
@ -1153,8 +1153,8 @@ App.Utils.CalendarDefaultView = (function () {
$calendar, $calendar,
$selectFilterItem.val(), $selectFilterItem.val(),
$('#select-filter-item option:selected').attr('type'), $('#select-filter-item option:selected').attr('type'),
fullCalendar.view.currentStart, fullCalendar.view.activeStart,
fullCalendar.view.currentEnd, fullCalendar.view.activeEnd,
); );
$(window).trigger('resize'); // Places the footer on the bottom. $(window).trigger('resize'); // Places the footer on the bottom.
@ -1641,8 +1641,8 @@ App.Utils.CalendarDefaultView = (function () {
$calendar, $calendar,
$selectFilterItem.val(), $selectFilterItem.val(),
$selectFilterItem.find('option:selected').attr('type'), $selectFilterItem.find('option:selected').attr('type'),
fullCalendar.view.currentStart, fullCalendar.view.activeStart,
fullCalendar.view.currentEnd, fullCalendar.view.activeEnd,
); );
}, 60000); }, 60000);
} }