mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix deletion form for BuildItem
This commit is contained in:
parent
06e95819c9
commit
edc2cc49c2
@ -1,3 +1,7 @@
|
|||||||
|
{% extends "modal_delete_form.html" %}
|
||||||
|
|
||||||
|
{% block pre_form_content %}
|
||||||
Are you sure you want to unallocate these parts?
|
Are you sure you want to unallocate these parts?
|
||||||
<br>
|
<br>
|
||||||
This will remove {{ item.quantity }} parts from build '{{ item.build.title }}'.
|
This will remove {{ item.quantity }} parts from build '{{ item.build.title }}'.
|
||||||
|
{% endblock %}
|
@ -87,7 +87,7 @@ function loadAllocationTable(table, part_id, part, url, required, button) {
|
|||||||
table.on('click', '.item-del-button', function() {
|
table.on('click', '.item-del-button', function() {
|
||||||
var button = $(this);
|
var button = $(this);
|
||||||
|
|
||||||
launchDeleteForm(button.attr('url'), {
|
launchModalForm(button.attr('url'), {
|
||||||
success: function() {
|
success: function() {
|
||||||
table.bootstrapTable('refresh');
|
table.bootstrapTable('refresh');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user