From 98f70d1525eedfb2fb4b6a4fdd8f4823167d2989 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 25 Jan 2020 18:36:54 +0100 Subject: [PATCH] Finalize products on meal plan feature (references #450) --- public/viewjs/mealplan.js | 2 +- public/viewjs/shoppinglistitemform.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js index 8e2c08ea..7801973d 100644 --- a/public/viewjs/mealplan.js +++ b/public/viewjs/mealplan.js @@ -213,7 +213,7 @@ var calendar = $("#calendar").fullCalendar({
\ \ \ - \ + \
\ '); diff --git a/public/viewjs/shoppinglistitemform.js b/public/viewjs/shoppinglistitemform.js index 8cbc2530..d7a5103e 100644 --- a/public/viewjs/shoppinglistitemform.js +++ b/public/viewjs/shoppinglistitemform.js @@ -188,3 +188,9 @@ if (GetUriParam("list") !== undefined) { $("#shopping_list_id").val(GetUriParam("list")); } + +if (GetUriParam("amount") !== undefined) +{ + $("#amount").val(GetUriParam("amount")); + Grocy.FrontendHelpers.ValidateForm('shoppinglist-form'); +}