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) {