2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Refactor BomItemDelete form

This commit is contained in:
Oliver
2021-07-03 16:10:41 +10:00
parent 359e92cd8e
commit 83256b1014
4 changed files with 9 additions and 34 deletions

View File

@ -514,14 +514,13 @@ function loadBomTable(table, options) {
var pk = $(this).attr('pk');
var url = `/part/bom/${pk}/delete/`;
launchModalForm(
url,
{
success: function() {
reloadBomTable(table);
}
constructForm(`/api/bom/${pk}/`, {
method: 'DELETE',
title: '{% trans "Delete BOM Item" %}',
onSuccess: function() {
reloadBomTable(table);
}
);
});
});
table.on('click', '.bom-edit-button', function() {