JS bug fix

This commit is contained in:
Oliver 2021-07-03 16:28:03 +10:00
parent 83256b1014
commit 5c1fddd96d

View File

@ -53,8 +53,6 @@ loadAttachmentTable(
}); });
}, },
onDelete: function(pk) { onDelete: function(pk) {
var pk = button.attr('pk');
constructForm(`/api/order/so/attachment/${pk}/`, { constructForm(`/api/order/so/attachment/${pk}/`, {
method: 'DELETE', method: 'DELETE',
confirmMessage: '{% trans "Confirm Delete Operation" %}', confirmMessage: '{% trans "Confirm Delete Operation" %}',