From e3fc1ab138bd418556ac8e4001ab76613313f568 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 13 Feb 2022 20:49:42 +1100 Subject: [PATCH] Allow BOM file to be "re-uploaded" --- InvenTree/part/templates/part/upload_bom.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/upload_bom.html b/InvenTree/part/templates/part/upload_bom.html index 57c7014197..151a4b5424 100644 --- a/InvenTree/part/templates/part/upload_bom.html +++ b/InvenTree/part/templates/part/upload_bom.html @@ -89,8 +89,11 @@ $('#bom-upload').click(function() { }, title: '{% trans "Upload BOM File" %}', onSuccess: function(response) { - $('#bom-upload').hide(); + // Clear existing entries from the table + $('.bom-import-row').remove(); + + // Disable the "submit" button $('#bom-submit').show(); constructBomUploadTable(response);