mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #21783 from nextcloud/backport/21777/stable18
[stable18] lower minimum search length to 2 characters
This commit is contained in:
commit
5ec0279442
2 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue