settings: Add file search to the uploads table.

This uses the searching capabilities of the list_render class to search
for files by name; normalized by lowercase locale.
This commit is contained in:
Brock Whittaker
2017-09-28 12:08:05 -07:00
committed by Tim Abbott
parent 7882039a11
commit 7b8fd1aafb
2 changed files with 2 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ exports.set_up_attachments = function () {
});
var uploaded_files_table = $("#uploaded_files_table").expectOne();
var $search_input = $("#upload_file_search");
list_render(uploaded_files_table, attachments, {
name: "uploaded-files-list",