Update exposed calendar page methods

This commit is contained in:
Alex Tselegidis 2024-05-11 17:04:04 +02:00
parent 1fbe17aade
commit 0041e29ec7

View file

@ -17,6 +17,8 @@
App.Pages.Calendar = (function () {
const $insertWorkingPlanException = $('#insert-working-plan-exception');
const moment = window.moment;
/**
* Add the page event listeners.
*/
@ -150,13 +152,13 @@ App.Pages.Calendar = (function () {
App.Utils.CalendarDefaultView.initialize();
}
addEventListeners();
App.Pages.Calendar.addEventListeners();
}
document.addEventListener('DOMContentLoaded', initialize);
return {
initialize,
addEventListeners,
getSelectionEndDate,
};
})();