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",

View File

@@ -1,5 +1,6 @@
<div id="attachments-settings" class="settings-section" data-name="uploaded-files">
<div class='tip'>{{#tr this}}You are currently using __total_uploads_size__ of __upload_quota__ upload space.{{/tr}}</div>
<input id="upload_file_search" type="search" name="" value="" placeholder="{{t 'Search uploads...' }}" />
<div class="alert" id="delete-upload-status"></div>
<div class="progressive-table-wrapper">
<table class="table table-condensed table-striped">