From 103f98b66542805077a3965c0b158139ef344b5d Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 21 Dec 2021 16:51:26 +1100 Subject: [PATCH] Adds "reload" button to attachment table(s) --- InvenTree/templates/attachment_table.html | 2 +- InvenTree/templates/js/translated/attachment.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/attachment_table.html b/InvenTree/templates/attachment_table.html index cbd47dd3cf..cd73e864a1 100644 --- a/InvenTree/templates/attachment_table.html +++ b/InvenTree/templates/attachment_table.html @@ -2,7 +2,7 @@
- {% include "filter_list.html" with id="related" %} + {% include "filter_list.html" with id="attachments" %}
diff --git a/InvenTree/templates/js/translated/attachment.js b/InvenTree/templates/js/translated/attachment.js index 5c5af5682f..44061403fa 100644 --- a/InvenTree/templates/js/translated/attachment.js +++ b/InvenTree/templates/js/translated/attachment.js @@ -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({