More modal iframe dialog handling improvements

This commit is contained in:
Bernd Bestel
2025-01-11 15:41:04 +01:00
parent 2c0b1a7be0
commit a2c2049037
50 changed files with 60 additions and 60 deletions

View File

@@ -213,7 +213,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
setTimeout(function()
{
$('#display_amount').focus();
}, 300);
}, 500);
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
Grocy.ShoppingListItemFormInitialLoadDone = true;
},
@@ -299,7 +299,7 @@ if (!Grocy.Components.ProductPicker.InAnyFlow())
setTimeout(function()
{
Grocy.Components.ProductPicker.GetInputElement().focus();
}, 200);
}, 500);
}
}
else
@@ -311,7 +311,7 @@ else
setTimeout(function()
{
Grocy.Components.ProductPicker.GetInputElement().focus();
}, 200);
}, 500);
}
}