Auto-focus on the 'sub_part' field

This commit is contained in:
Oliver 2021-10-11 10:25:36 +11:00
parent 8dddb200c7
commit 00275d61eb
2 changed files with 2 additions and 0 deletions

View File

@ -552,6 +552,7 @@
fields: fields,
method: 'POST',
title: '{% trans "Create BOM Item" %}',
focus: 'sub_part',
onSuccess: function() {
$('#bom-table').bootstrapTable('refresh');
}

View File

@ -576,6 +576,7 @@ function loadBomTable(table, options) {
constructForm(`/api/bom/${pk}/`, {
fields: fields,
title: '{% trans "Edit BOM Item" %}',
focus: 'sub_part',
onSuccess: function() {
reloadBomTable(table);
}