2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-03 05:48:47 +00:00

Add callback for "remove row" button

This commit is contained in:
Oliver 2022-02-05 09:11:01 +11:00
parent 8a86932c7b
commit c620107625

View File

@ -89,6 +89,11 @@ function constructBomUploadTable(data, options={}) {
}, },
} }
); );
// Add callback for "remove row" button
$(`#button-row-remove-${idx}`).click(function() {
$(`#bom_import_row_${idx}`).remove();
});
} }
data.rows.forEach(function(row, idx) { data.rows.forEach(function(row, idx) {