Fix deletion form for BuildItem

This commit is contained in:
Oliver Walters 2019-05-13 23:03:32 +10:00
parent 06e95819c9
commit edc2cc49c2
2 changed files with 6 additions and 2 deletions

View File

@ -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 %}

View File

@ -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');
} }