mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Auto-focus on the 'sub_part' field
This commit is contained in:
parent
8dddb200c7
commit
00275d61eb
@ -552,6 +552,7 @@
|
|||||||
fields: fields,
|
fields: fields,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
title: '{% trans "Create BOM Item" %}',
|
title: '{% trans "Create BOM Item" %}',
|
||||||
|
focus: 'sub_part',
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
$('#bom-table').bootstrapTable('refresh');
|
$('#bom-table').bootstrapTable('refresh');
|
||||||
}
|
}
|
||||||
|
@ -576,6 +576,7 @@ function loadBomTable(table, options) {
|
|||||||
constructForm(`/api/bom/${pk}/`, {
|
constructForm(`/api/bom/${pk}/`, {
|
||||||
fields: fields,
|
fields: fields,
|
||||||
title: '{% trans "Edit BOM Item" %}',
|
title: '{% trans "Edit BOM Item" %}',
|
||||||
|
focus: 'sub_part',
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
reloadBomTable(table);
|
reloadBomTable(table);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user