From a569048a3a893620b5272e87204105e9c938d013 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Mon, 24 Aug 2020 18:32:50 +0200 Subject: [PATCH] Validate form after changing the QU on the recipe ingredient edit page (fixes #907) --- public/viewjs/recipeposform.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/viewjs/recipeposform.js b/public/viewjs/recipeposform.js index 381ca012..fb226e80 100644 --- a/public/viewjs/recipeposform.js +++ b/public/viewjs/recipeposform.js @@ -123,6 +123,11 @@ $('#recipe-pos-form input').keyup(function(event) Grocy.FrontendHelpers.ValidateForm('recipe-pos-form'); }); +$('#qu_id').change(function(event) +{ + Grocy.FrontendHelpers.ValidateForm('recipe-pos-form'); +}); + $('#recipe-pos-form input').keydown(function(event) { if (event.keyCode === 13) //Enter