From 5ba9bbbcd17d18baac57852460f396cf8a2f049a Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 2 Jul 2021 18:04:20 +0200 Subject: [PATCH] Fixed mssing-recipe-ingredients-to-shopping-list checkbox inner-click (fixes #1383) --- public/viewjs/recipes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/viewjs/recipes.js b/public/viewjs/recipes.js index d67a0fbe..f60af8c7 100644 --- a/public/viewjs/recipes.js +++ b/public/viewjs/recipes.js @@ -334,6 +334,14 @@ $(document).on("click", ".missing-recipe-pos-select-button", function(e) $(this).toggleClass("list-group-item-primary"); }); +$(document).on("click", ".missing-recipe-pos-product-checkbox", function(e) +{ + e.stopPropagation(); + + $(this).prop("checked", !$(this).prop("checked")); + $(this).parent().parent().click(); +}); + if (window.location.hash === "#fullscreen") { $("#selectedRecipeToggleFullscreenButton").click();