mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
Code refactoring and improvements for the calendar page module.
This commit is contained in:
parent
1ebc50893e
commit
7f1302087a
1 changed files with 3 additions and 3 deletions
|
@ -16,9 +16,9 @@
|
||||||
*/
|
*/
|
||||||
App.Pages.Calendar = (function () {
|
App.Pages.Calendar = (function () {
|
||||||
/**
|
/**
|
||||||
* Bind the event handlers.
|
* Add the page event listeners.
|
||||||
*/
|
*/
|
||||||
function bindEventHandlers() {
|
function addEventListeners() {
|
||||||
const $calendarPage = $('#calendar-page');
|
const $calendarPage = $('#calendar-page');
|
||||||
|
|
||||||
$calendarPage.on('click', '#toggle-fullscreen', (event) => {
|
$calendarPage.on('click', '#toggle-fullscreen', (event) => {
|
||||||
|
@ -114,7 +114,7 @@ App.Pages.Calendar = (function () {
|
||||||
App.Utils.CalendarDefaultView.initialize();
|
App.Utils.CalendarDefaultView.initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
bindEventHandlers();
|
addEventListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', initialize);
|
document.addEventListener('DOMContentLoaded', initialize);
|
||||||
|
|
Loading…
Reference in a new issue