mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
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
This commit is contained in:
parent
54e4d3217c
commit
4815388253
|
|
@ -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");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user