After selecting a search result, hide the results

This commit is contained in:
Bart Visscher 2012-09-28 21:18:11 +02:00
parent 24bb7d16b7
commit 9c4c79346c
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ OC.search.showResults=function(results){
parent.load(OC.filePath('search','templates','part.results.php'),function(){
OC.search.showResults.loaded=true;
$('#searchresults').click(function(event){
OC.search.hide();
event.stopPropagation();
});
$(window).click(function(event){