diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-31 02:05:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-31 02:05:07 +0200 |
commit | 291d8c73f80e98fae9f858a9118409d546ebe640 (patch) | |
tree | 565635c3f550c88511032805c134d2f4339dc11f /search/js/result.js | |
parent | 3a08f747fb714731ec1323fc59d3cb7c4784db5e (diff) | |
download | nextcloud-server-291d8c73f80e98fae9f858a9118409d546ebe640.tar.gz nextcloud-server-291d8c73f80e98fae9f858a9118409d546ebe640.zip |
dont hide the results if a new search yield no results
Diffstat (limited to 'search/js/result.js')
-rw-r--r-- | search/js/result.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/search/js/result.js b/search/js/result.js index cb5ec31cd31..5ccc42252bf 100644 --- a/search/js/result.js +++ b/search/js/result.js @@ -16,6 +16,9 @@ OC.search.hide=function(){ }; } OC.search.showResults=function(results){ + if(results.length==0){ + return; + } if(!OC.search.showResults.loaded){ var parent=$('<div/>'); $('body').append(parent); |