Skip to content

Commit

Permalink
Merge pull request #21777 from nextcloud/search-min-length
Browse files Browse the repository at this point in the history
lower minimum search length to 2 characters
  • Loading branch information
rullzer authored Jul 9, 2020
2 parents 85486a5 + 68e87c7 commit c354f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/files/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion core/search/js/searchprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c354f6d

Please sign in to comment.