Adds "reload" button to attachment table(s)

This commit is contained in:
Oliver 2021-12-21 16:51:26 +11:00
parent dbc385ac24
commit 103f98b665
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div id='attachment-buttons'>
<div class='btn-group' role='group'>
{% include "filter_list.html" with id="related" %}
{% include "filter_list.html" with id="attachments" %}
</div>
</div>

View File

@ -67,6 +67,8 @@ function loadAttachmentTable(url, options) {
var table = options.table || '#attachment-table';
setupFilterList('attachments', $(table), '#filter-list-attachments');
addAttachmentButtonCallbacks(url, options.fields || {});
$(table).inventreeTable({