]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont hide the results if a new search yield no results
authorRobin Appelman <icewind1991@gmail.com>
Sun, 31 Jul 2011 00:05:07 +0000 (02:05 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sun, 31 Jul 2011 00:05:07 +0000 (02:05 +0200)
search/js/result.js

index cb5ec31cd313e43ecef06f2701c40c64b5c12c99..5ccc42252bf70473f012ad2af403fea107f3f4ae 100644 (file)
@@ -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);