2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Replace PartAttachmentEdit view

This commit is contained in:
Oliver
2021-06-30 09:49:30 +10:00
parent 238dccc071
commit b946aedb5c
5 changed files with 21 additions and 32 deletions

View File

@@ -56,12 +56,18 @@
$("#attachment-table").on('click', '.attachment-edit-button', function() {
var button = $(this);
var url = `/part/attachment/${button.attr('pk')}/edit/`;
var pk = button.attr('pk');
launchModalForm(url,
{
reload: true,
});
var url = `/api/part/attachment/${pk}/`;
constructForm(url, {
fields: {
attachment: {},
comment: {},
},
title: '{% trans "Edit Attachment" %}',
reload: true,
});
});
$("#attachment-table").on('click', '.attachment-delete-button', function() {