From c620107625d63a76647df1b9ef3420ac888747fe Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 5 Feb 2022 09:11:01 +1100 Subject: [PATCH] Add callback for "remove row" button --- InvenTree/templates/js/translated/bom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index 5b1c7e2bb2..7bb160eccb 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -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) {