summaryrefslogtreecommitdiffstats
path: root/search/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-31 02:05:07 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-31 02:05:07 +0200
commit291d8c73f80e98fae9f858a9118409d546ebe640 (patch)
tree565635c3f550c88511032805c134d2f4339dc11f /search/js
parent3a08f747fb714731ec1323fc59d3cb7c4784db5e (diff)
downloadnextcloud-server-291d8c73f80e98fae9f858a9118409d546ebe640.tar.gz
nextcloud-server-291d8c73f80e98fae9f858a9118409d546ebe640.zip
dont hide the results if a new search yield no results
Diffstat (limited to 'search/js')
-rw-r--r--search/js/result.js3
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);