mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Improved form validation handling (closes #1836)
This commit is contained in:
@@ -4,6 +4,11 @@ $('#save-purchase-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
if (!Grocy.FrontendHelpers.ValidateForm("purchase-form", true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
|
Reference in New Issue
Block a user