From debb29ddaa991d58ba5ab393be0e13c81e1a60d9 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 1 Feb 2020 09:03:30 +0100 Subject: [PATCH] Fixed recipeposform edit when "Only check if a single unit is in stock" is set (fixes #535) --- changelog/56_UNRELEASED_2020-xx-xx.md | 3 ++- public/viewjs/recipeposform.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog/56_UNRELEASED_2020-xx-xx.md b/changelog/56_UNRELEASED_2020-xx-xx.md index ba196902..ae921cbc 100644 --- a/changelog/56_UNRELEASED_2020-xx-xx.md +++ b/changelog/56_UNRELEASED_2020-xx-xx.md @@ -4,5 +4,6 @@ ### Shopping list fixes - Optimized the new compact view (there was a little too much white space at the sides of the page) -### Recipe improvements +### Recipe improvements/fixes +- Fixed that when editing a recipe ingredient which had "Only check if a single unit is in stock" set, not any quantity unit could be picked and the amount stayed empty - Optimized the ordering of the inputs on the recipe ingredient edit page (moved "Only check if a single unit is in stock" before the amount) diff --git a/public/viewjs/recipeposform.js b/public/viewjs/recipeposform.js index 21432c52..7d228155 100644 --- a/public/viewjs/recipeposform.js +++ b/public/viewjs/recipeposform.js @@ -154,5 +154,5 @@ $("#only_check_single_unit_in_stock").on("click", function() }); // Click twice to trigger on-click but not change the actual checked state -//$("#only_check_single_unit_in_stock").click(); -//$("#only_check_single_unit_in_stock").click(); +$("#only_check_single_unit_in_stock").click(); +$("#only_check_single_unit_in_stock").click();