summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-07-09 15:00:30 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-07-09 20:28:57 +0000
commit9847b98c530b951d932a5118d2fb1ccce7377f6f (patch)
tree210e42207b2820b47e9a5d550f786453f14079b7
parent9661e73ef589cef976e7b4d214d1f71451b8219f (diff)
downloadnextcloud-server-9847b98c530b951d932a5118d2fb1ccce7377f6f.tar.gz
nextcloud-server-9847b98c530b951d932a5118d2fb1ccce7377f6f.zip
lower minimum search length to 2 characters
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files/js/search.js2
-rw-r--r--core/search/js/searchprovider.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/search.js b/apps/files/js/search.js
index 4df79055f5c..66899c09150 100644
--- a/apps/files/js/search.js
+++ b/apps/files/js/search.js
@@ -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');
diff --git a/core/search/js/searchprovider.js b/core/search/js/searchprovider.js
index 1ba7d63b3fe..efd44d2784a 100644
--- a/core/search/js/searchprovider.js
+++ b/core/search/js/searchprovider.js
@@ -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();