delay hiding no results message until search is triggered

This commit is contained in:
Jörn Friedrich Dreyer 2015-01-02 16:13:15 +01:00
parent 818e7388c4
commit ba235eb51d
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}
}
});