Updated form for deleting part attachments

This commit is contained in:
Oliver Walters 2019-05-13 22:53:58 +10:00
parent fcdddf6bb6
commit ffa5a25fa9
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 wish to delete this attachment?
<br>
This will remove the file '{{ attachment.basename }}'.
This will remove the file '{{ attachment.basename }}'.
{% endblock %}

View File

@ -62,7 +62,7 @@
$("#attachment-table").on('click', '.attachment-delete-button', function() {
var button = $(this);
launchDeleteForm(button.attr('url'), {
launchModalForm(button.attr('url'), {
success: function() {
location.reload();
}