mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Form productivity improvements
This commit is contained in:
@@ -232,6 +232,18 @@ $(function()
|
||||
}
|
||||
});
|
||||
|
||||
$('#amount').on('focus', function(e)
|
||||
{
|
||||
if ($('#product_id_text_input').val().length === 0)
|
||||
{
|
||||
$('#product_id_text_input').focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
$(this).select();
|
||||
}
|
||||
});
|
||||
|
||||
$('#purchase-form input').keydown(function(event)
|
||||
{
|
||||
if (event.keyCode === 13) //Enter
|
||||
|
Reference in New Issue
Block a user