More modal iframe dialog handling improvements

This commit is contained in:
Bernd Bestel
2025-01-10 20:26:37 +01:00
parent 201bda93a2
commit a373f8ae4b
24 changed files with 117 additions and 42 deletions

View File

@@ -343,7 +343,10 @@ if (Grocy.Components.ProductPicker !== undefined)
$("#stock_label_type").trigger("change");
}
$("#display_amount").focus();
setTimeout(function()
{
$('#display_amount').focus();
}, 150);
Grocy.FrontendHelpers.ValidateForm('purchase-form');
if (GetUriParam("flow") === "shoppinglistitemtostock" && BoolVal(Grocy.UserSettings.shopping_list_to_stock_workflow_auto_submit_when_prefilled) && Grocy.FrontendHelpers.ValidateForm("purchase-form"))