Improved form validation handling (closes #1836)

This commit is contained in:
Bernd Bestel
2022-03-26 10:34:00 +01:00
parent 6aae97de73
commit 81b54182de
33 changed files with 180 additions and 17 deletions

View File

@@ -2,6 +2,11 @@
{
e.preventDefault();
if (!Grocy.FrontendHelpers.ValidateForm("quantityunit-form", true))
{
return;
}
var jsonData = $('#quantityunit-form').serializeJSON();
Grocy.FrontendHelpers.BeginUiBusy("quantityunit-form");