From 24b5030776897e968562bbaa1a345ad33e9d4801 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Thu, 28 Sep 2017 12:08:43 -0700 Subject: [PATCH] settings: Add perfectScrollbar to uploads table. This adds the perfectScrollbar to the uploads table so that it will function properly in the settings container since the parent node has a perfectScrollbar. --- static/js/attachments_ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/attachments_ui.js b/static/js/attachments_ui.js index 730c4b6e50..75c3317c26 100644 --- a/static/js/attachments_ui.js +++ b/static/js/attachments_ui.js @@ -47,9 +47,13 @@ exports.set_up_attachments = function () { callback: function (item, value) { return item.name.toLocaleLowerCase().indexOf(value) >= 0; }, + onupdate: function () { + ui.update_scrollbar(uploaded_files_table.closest(".progressive-table-wrapper")); + }, }, }).init(); + ui.set_up_scrollbar(uploaded_files_table.closest(".progressive-table-wrapper")); uploaded_files_table.empty(); _.each(attachments, function (attachment) {