From edf973df00b327344c589536a3b67be45890196d Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 13 Feb 2024 20:07:24 +0100 Subject: [PATCH] Improved meal plan item buttons (closes #2471) --- public/viewjs/mealplan.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js index f644bb39..1e8f5cf6 100644 --- a/public/viewjs/mealplan.js +++ b/public/viewjs/mealplan.js @@ -107,10 +107,10 @@ $(".calendar").each(function() var weekRecipeOrderMissingButtonHtml = ""; if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST) { - weekRecipeOrderMissingButtonHtml = ''; + weekRecipeOrderMissingButtonHtml = ''; } - weekRecipeConsumeButtonHtml = '' + weekRecipeConsumeButtonHtml = '' } $(".calendar[data-primary-section='true'] .fc-header-toolbar .fc-center").html("

" + weekCostsHtml + weekRecipeOrderMissingButtonHtml + weekRecipeConsumeButtonHtml + "

"); }, @@ -128,11 +128,11 @@ $(".calendar").each(function() } var additionalTitleCssClasses = ""; - var doneButtonHtml = ''; + var doneButtonHtml = ''; if (BoolVal(mealPlanEntry.done)) { additionalTitleCssClasses = "text-strike-through text-muted"; - doneButtonHtml = ''; + doneButtonHtml = ''; } if (event.type == "recipe") @@ -188,7 +188,7 @@ $(".calendar").each(function() var shoppingListButtonHtml = ""; if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_SHOPPINGLIST) { - shoppingListButtonHtml = ''; + shoppingListButtonHtml = ''; } element.html('\ @@ -198,10 +198,10 @@ $(".calendar").each(function()
' + fulfillmentIconHtml + " " + fulfillmentInfoHtml + '
\ ' + costsAndCaloriesPerServing + ' \
\ - \ + \ \ + \ ' + shoppingListButtonHtml + ' \ - \ ' + doneButtonHtml + ' \
\ '); @@ -269,9 +269,9 @@ $(".calendar").each(function()
' + fulfillmentIconHtml + " " + fulfillmentInfoHtml + '
\ ' + costsAndCaloriesPerServing + ' \
\ - \ \ - \ + \ + \ ' + shoppingListButtonHtml + ' \ ' + doneButtonHtml + ' \
\ @@ -288,8 +288,8 @@ $(".calendar").each(function()
\
' + mealPlanEntry.note + '
\
\ - \ \ + \ ' + doneButtonHtml + ' \
\
');