From 5c622b9512e5bc1bc879aa0d5961fb7a44e256c9 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 26 Jan 2019 13:13:38 +0100 Subject: [PATCH] Fix product form was not validated when changing location (fixes #144) --- public/viewjs/productform.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/viewjs/productform.js b/public/viewjs/productform.js index 75d05460..ca93c725 100644 --- a/public/viewjs/productform.js +++ b/public/viewjs/productform.js @@ -177,6 +177,11 @@ $('#product-form input').keyup(function(event) Grocy.FrontendHelpers.ValidateForm('product-form'); }); +$('#location_id').change(function(event) +{ + Grocy.FrontendHelpers.ValidateForm('product-form'); +}); + $('#product-form input').keydown(function(event) { if (event.keyCode === 13) //Enter