Removing of resize event (#1190)

* 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

* Update calendar.js

Now it only get's called once :)

* Update mealplan.js

Same thing here as in calendar.js

* Update calendar.js

Removed redundant variable
This commit is contained in:
PhyberApex 2020-12-16 17:26:39 +01:00 committed by GitHub
parent 54e4d3217c
commit 596a7ccd36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ $("#ical-button").on("click", function(e)
);
});
$(window).on("resize", function()
$(window).one("resize", function()
{
// Automatically switch the calendar to "basicDay" view on small screens
// and to "month" otherwise

View File

@ -751,7 +751,7 @@ $(document).on("click", ".recipe-popup-button", function(e)
);
});
$(window).on("resize", function()
$(window).one("resize", function()
{
// Automatically switch the calendar to "basicDay" view on small screens
// and to "basicWeek" otherwise