From 71db56845c6e958c90782e80cf0bd211d91dcd1f Mon Sep 17 00:00:00 2001 From: PhyberApex Date: Wed, 16 Dec 2020 14:25:21 +0100 Subject: [PATCH] Update mealplan.js Same thing here as in calendar.js --- public/viewjs/mealplan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js index 2e8ff1c6..9674d0aa 100644 --- a/public/viewjs/mealplan.js +++ b/public/viewjs/mealplan.js @@ -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