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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user