mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 10:14:39 +00:00
Prevent form submit when any combobox-dropdown is open (fixes #1236)
This commit is contained in:
@@ -4,6 +4,16 @@ $('#save-purchase-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ($(".combobox-menu-visible").length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var jsonForm = $('#purchase-form').serializeJSON();
|
||||
|
||||
Grocy.FrontendHelpers.BeginUiBusy("purchase-form");
|
||||
|
Reference in New Issue
Block a user