Merge pull request #2128 from SchrodingersGat/bom-focus
Auto-focus on the 'sub_part' field
This commit is contained in:
commit
2f59e31a40
|
|
@ -552,6 +552,7 @@
|
|||
fields: fields,
|
||||
method: 'POST',
|
||||
title: '{% trans "Create BOM Item" %}',
|
||||
focus: 'sub_part',
|
||||
onSuccess: function() {
|
||||
$('#bom-table').bootstrapTable('refresh');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue