Fix product form was not validated when changing location (fixes #144)

This commit is contained in:
Bernd Bestel 2019-01-26 13:13:38 +01:00
parent eec3515b6d
commit 5c622b9512
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -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