mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Fixed shopping list item form initial input field focus
This commit is contained in:
parent
36b8309943
commit
59277c898a
|
|
@ -214,10 +214,6 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||||
});
|
});
|
||||||
|
|
||||||
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
|
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
|
||||||
setTimeout(function()
|
|
||||||
{
|
|
||||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
|
||||||
}, 250);
|
|
||||||
|
|
||||||
if (Grocy.EditMode === "edit")
|
if (Grocy.EditMode === "edit")
|
||||||
{
|
{
|
||||||
|
|
@ -278,7 +274,10 @@ if (GetUriParam("embedded") !== undefined)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
setTimeout(function()
|
||||||
|
{
|
||||||
|
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||||
|
}, 250);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user