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.
This commit is contained in:
Brock Whittaker 2017-09-28 12:08:43 -07:00 committed by Tim Abbott
parent 7b8fd1aafb
commit 24b5030776
1 changed files with 4 additions and 0 deletions

View File

@ -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) {