mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge remote-tracking branch 'inventree/master'
This commit is contained in:
commit
d218f07940
@ -37,7 +37,10 @@
|
|||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
|
|
||||||
$("#new-attachment").click(function() {
|
$("#new-attachment").click(function() {
|
||||||
launchModalForm("{% url 'part-attachment-create' %}?part={{ part.id }}");
|
launchModalForm("{% url 'part-attachment-create' %}?part={{ part.id }}",
|
||||||
|
{
|
||||||
|
reload: true,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#attachment-table").on('click', '.attachment-edit-button', function() {
|
$("#attachment-table").on('click', '.attachment-edit-button', function() {
|
||||||
@ -45,8 +48,7 @@
|
|||||||
|
|
||||||
launchModalForm(button.attr('url'),
|
launchModalForm(button.attr('url'),
|
||||||
{
|
{
|
||||||
success: function() {
|
reload: true,
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -55,6 +57,7 @@
|
|||||||
|
|
||||||
launchDeleteForm(button.attr('url'), {
|
launchDeleteForm(button.attr('url'), {
|
||||||
success: function() {
|
success: function() {
|
||||||
|
location.reload();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -619,3 +619,4 @@ class SupplierPartDelete(AjaxDeleteView):
|
|||||||
model = SupplierPart
|
model = SupplierPart
|
||||||
success_url = '/supplier/'
|
success_url = '/supplier/'
|
||||||
ajax_template_name = 'company/partdelete.html'
|
ajax_template_name = 'company/partdelete.html'
|
||||||
|
ajax_form_title = 'Delete Supplier Part'
|
||||||
|
Loading…
Reference in New Issue
Block a user