Kalender Update
* Absage Filter erweitert * Suchfilter auf Eventtypfilter und Absage Filter erweitert
This commit is contained in:
@@ -2093,17 +2093,31 @@ $(document).ready(function () {
|
||||
url: requestEventSearchURL,
|
||||
data: function (params) {
|
||||
let checkbox = $(".calendar-check");
|
||||
let calendarFilter = $('.btn-light-search');
|
||||
let visibleCalendars = [];
|
||||
let visibleCalendarTypes = [];
|
||||
let visibleCancellation = 0;
|
||||
visibleCalendars.push(0);
|
||||
checkbox.each(function () {
|
||||
if ($(this).prop('checked')) {
|
||||
visibleCalendars.push($(this).data('calendar_id'));
|
||||
}
|
||||
});
|
||||
calendarFilter.each(function () {
|
||||
if (!$(this).hasClass('top-search-filter')) {
|
||||
visibleCalendarTypes.push($(this).data('ctype'));
|
||||
if ($(this).data('eventcancelled')) {
|
||||
visibleCancellation = 1;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
return {
|
||||
q: params.term, // Der Suchbegriff
|
||||
term: params.term, // Der Suchbegriff
|
||||
calendars: visibleCalendars, // Die dynamische letiable, die du hinzufügen möchtest
|
||||
visibleCalendarTypes: visibleCalendarTypes,
|
||||
visibleCancellation: visibleCancellation,
|
||||
cal_id: $('#calendar-id').data('calendarid')
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user