Corrected invalid selector use.

This commit is contained in:
Alex Tselegidis 2020-04-08 10:29:47 +02:00
parent fc8bb6c03b
commit 2256505244

View file

@ -41,11 +41,11 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
*/ */
$('#reload-appointments').click(function () { $('#reload-appointments').click(function () {
_refreshCalendarAppointments( _refreshCalendarAppointments(
$calendar, $('#calendar'),
$selectFilterItem.val(), $('#select-filter-item').val(),
$selectFilterItem.find('option:selected').attr('type'), $('#select-filter-item').find('option:selected').attr('type'),
$calendar.fullCalendar('getView').start, $('#calendar').fullCalendar('getView').start,
$calendar.fullCalendar('getView').end); $('#calendar').fullCalendar('getView').end);
}); });
/** /**
@ -1472,7 +1472,6 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
} }
// Automatically refresh the calendar page every 10 seconds (without loading animation). // Automatically refresh the calendar page every 10 seconds (without loading animation).
var $loading = $('#loading');
var $calendar = $('#calendar'); var $calendar = $('#calendar');
var $selectFilterItem = $('#select-filter-item'); var $selectFilterItem = $('#select-filter-item');