2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Add "focus" option when displaying a modal form

This commit is contained in:
Oliver Walters
2020-09-01 12:43:37 +10:00
parent 90d2265dae
commit ffbdb0317f
2 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,7 @@ $("#add-test-result").click(function() {
stock_item: {{ item.id }},
},
success: reloadTable,
focus: 'test',
}
);
});
@ -89,6 +90,7 @@ $("#test-result-table").on('click', '.button-test-add', function() {
test: test_name
},
success: reloadTable,
focus: 'value',
}
);
});