Code refactoring and improvements for the calendar page.

This commit is contained in:
Alex Tselegidis 2022-01-17 06:31:27 +01:00
parent 5c5498670c
commit 0a7f40a65e

View file

@ -15,6 +15,8 @@
* This module implements the functionality of the backend calendar page.
*/
App.Pages.Calendar = (function () {
const $insertWorkingPlanException = $('#insert-working-plan-exception');
/**
* Add the page event listeners.
*/
@ -54,7 +56,7 @@ App.Pages.Calendar = (function () {
}
});
$('#insert-working-plan-exception').on('click', () => {
$insertWorkingPlanException.on('click', () => {
const providerId = $('#select-filter-item').val();
const provider = App.Vars.available_providers.find((availableProvider) => {