mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
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:
parent
54e4d3217c
commit
596a7ccd36
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user