lower minimum search length to 2 characters
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b99f061d48
commit
a7d4a69898
|
@ -146,7 +146,7 @@
|
||||||
search.setFilter('files', function (query) {
|
search.setFilter('files', function (query) {
|
||||||
if (self.fileAppLoaded()) {
|
if (self.fileAppLoaded()) {
|
||||||
self.fileList.setFilter(query);
|
self.fileList.setFilter(query);
|
||||||
if (query.length > 2) {
|
if (query.length > 1) {
|
||||||
//search is not started until 500msec have passed
|
//search is not started until 500msec have passed
|
||||||
window.setTimeout(function() {
|
window.setTimeout(function() {
|
||||||
$('.nofilterresults').addClass('hidden');
|
$('.nofilterresults').addClass('hidden');
|
||||||
|
|
|
@ -385,7 +385,7 @@
|
||||||
function(query) {
|
function(query) {
|
||||||
if (lastQuery !== query) {
|
if (lastQuery !== query) {
|
||||||
currentResult = -1;
|
currentResult = -1;
|
||||||
if (query.length > 2) {
|
if (query.length > 1) {
|
||||||
self.search(query);
|
self.search(query);
|
||||||
} else {
|
} else {
|
||||||
self.hideResults();
|
self.hideResults();
|
||||||
|
|
Loading…
Reference in New Issue