Merge pull request #21777 from nextcloud/search-min-length

lower minimum search length to 2 characters
This commit is contained in:
Roeland Jago Douma 2020-07-09 19:19:39 +02:00 committed by GitHub
commit c354f6d2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@
search.setFilter('files', function (query) {
if (self.fileAppLoaded()) {
self.fileList.setFilter(query);
if (query.length > 2) {
if (query.length > 1) {
//search is not started until 500msec have passed
window.setTimeout(function() {
$('.nofilterresults').addClass('hidden');

View File

@ -385,7 +385,7 @@
function(query) {
if (lastQuery !== query) {
currentResult = -1;
if (query.length > 2) {
if (query.length > 1) {
self.search(query);
} else {
self.hideResults();