From 291d8c73f80e98fae9f858a9118409d546ebe640 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 31 Jul 2011 02:05:07 +0200 Subject: dont hide the results if a new search yield no results --- search/js/result.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'search/js/result.js') 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=$('
'); $('body').append(parent); -- cgit v1.2.3