mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Fix deletion form for BuildItem
This commit is contained in:
@ -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');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user