Code refactoring and improvements for the calendar page module.

This commit is contained in:
Alex Tselegidis 2022-01-17 05:10:14 +01:00
parent 1ebc50893e
commit 7f1302087a

View file

@ -16,9 +16,9 @@
*/
App.Pages.Calendar = (function () {
/**
* Bind the event handlers.
* Add the page event listeners.
*/
function bindEventHandlers() {
function addEventListeners() {
const $calendarPage = $('#calendar-page');
$calendarPage.on('click', '#toggle-fullscreen', (event) => {
@ -114,7 +114,7 @@ App.Pages.Calendar = (function () {
App.Utils.CalendarDefaultView.initialize();
}
bindEventHandlers();
addEventListeners();
}
document.addEventListener('DOMContentLoaded', initialize);