From 481538825343fcb61d14c4b94fe77d116109cd01 Mon Sep 17 00:00:00 2001 From: PhyberApex Date: Wed, 16 Dec 2020 12:24:36 +0100 Subject: [PATCH] Removing of resize event Hey, I removed that resize event as it get's thrown every time you scroll on a mobile device. Which prevented me from actually viewing the list view of the calender on mobile devices. Let me know if you think it is still needed tho! ~Cheers --- public/viewjs/calendar.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/public/viewjs/calendar.js b/public/viewjs/calendar.js index e4507295..0d9f05a1 100644 --- a/public/viewjs/calendar.js +++ b/public/viewjs/calendar.js @@ -43,17 +43,3 @@ $("#ical-button").on("click", function(e) } ); }); - -$(window).on("resize", function() -{ - // Automatically switch the calendar to "basicDay" view on small screens - // and to "month" otherwise - if ($(window).width() < 768) - { - calendar.fullCalendar("changeView", "agendaDay"); - } - else - { - calendar.fullCalendar("changeView", "month"); - } -});