mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed modal dialogs / iframes initial input focus (fixes #1665)
This commit is contained in:
parent
29371163ad
commit
286351b6d2
@ -99,5 +99,8 @@ $(document).on('click', '.battery-grocycode-label-print', function(e)
|
||||
});
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.FrontendHelpers.ValidateForm('battery-form');
|
||||
|
@ -85,4 +85,7 @@ $('#location-form input').keydown(function(event)
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
Grocy.FrontendHelpers.ValidateForm('location-form');
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
|
@ -91,7 +91,10 @@ if (Grocy.EditMode == "edit")
|
||||
}
|
||||
|
||||
Grocy.FrontendHelpers.ValidateForm('barcode-form');
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#barcode').focus();
|
||||
}, 250);
|
||||
RefreshLocaleNumberInput();
|
||||
Grocy.Components.UserfieldsForm.Load()
|
||||
|
||||
|
@ -70,5 +70,8 @@ $('#product-group-form input').keydown(function(event)
|
||||
});
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.FrontendHelpers.ValidateForm('product-group-form');
|
||||
|
@ -74,5 +74,8 @@ $('#shopping-list-form input').keydown(function(event)
|
||||
});
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.FrontendHelpers.ValidateForm('shopping-list-form');
|
||||
|
@ -209,7 +209,10 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
});
|
||||
|
||||
Grocy.FrontendHelpers.ValidateForm('shoppinglist-form');
|
||||
setTimeout(function()
|
||||
{
|
||||
Grocy.Components.ProductPicker.GetInputElement().focus();
|
||||
}, 250);
|
||||
|
||||
if (Grocy.EditMode === "edit")
|
||||
{
|
||||
|
@ -84,5 +84,8 @@ $('#shoppinglocation-form input').keydown(function(event)
|
||||
});
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.FrontendHelpers.ValidateForm('shoppinglocation-form');
|
||||
|
@ -84,5 +84,8 @@ $('#task-category-form input').keydown(function(event)
|
||||
});
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.FrontendHelpers.ValidateForm('task-category-form');
|
||||
|
@ -88,6 +88,9 @@ $('#task-form input').keydown(function(event)
|
||||
});
|
||||
|
||||
Grocy.Components.UserfieldsForm.Load();
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.Components.DateTimePicker.GetInputElement().trigger('input');
|
||||
Grocy.FrontendHelpers.ValidateForm('task-form');
|
||||
|
@ -95,7 +95,10 @@ $("#show_in_sidebar_menu").on("click", function()
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function()
|
||||
{
|
||||
$('#name').focus();
|
||||
}, 250);
|
||||
Grocy.FrontendHelpers.ValidateForm('userentity-form');
|
||||
|
||||
// Click twice to trigger on-click but not change the actual checked state
|
||||
|
Loading…
x
Reference in New Issue
Block a user