diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-02 16:13:15 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-02 16:13:15 +0100 |
commit | ba235eb51de074670b04f25993d6ed2051ffbebf (patch) | |
tree | 6a73429a9dc7e031785380579a748cdbdecc1607 /apps/files | |
parent | 818e7388c435bb64530ef642345304c369805fd1 (diff) | |
download | nextcloud-server-ba235eb51de074670b04f25993d6ed2051ffbebf.tar.gz nextcloud-server-ba235eb51de074670b04f25993d6ed2051ffbebf.zip |
delay hiding no results message until search is triggered
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/search.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/search.js b/apps/files/js/search.js index dd8d3a6e502..2c3c42cf496 100644 --- a/apps/files/js/search.js +++ b/apps/files/js/search.js @@ -159,7 +159,10 @@ if (self.fileAppLoaded()) { OCA.Files.App.fileList.setFilter(query); if (query.length > 2) { - $('#nofilterresults').addClass('hidden'); + //search is not started until 500msec have passed + window.setTimeout(function() { + $('#nofilterresults').addClass('hidden'); + }, 500); } } }); |