diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-09-30 06:51:40 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-09-30 06:51:40 +0200 |
commit | 241862756eaa0fdbdcc278d14c6c1652dc4237d0 (patch) | |
tree | 0954204d047f587424384f60fd4c4e1d334ec8da /search | |
parent | 3273beb887fb8fd4c317a0263caa38a26e34f95e (diff) | |
parent | 258782584e490b92ccfcf032921aa7062a28da9f (diff) | |
download | nextcloud-server-241862756eaa0fdbdcc278d14c6c1652dc4237d0.tar.gz nextcloud-server-241862756eaa0fdbdcc278d14c6c1652dc4237d0.zip |
Merge branch 'master' of github.com:owncloud/core into vcategories_db
Diffstat (limited to 'search')
-rw-r--r-- | search/js/result.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/search/js/result.js b/search/js/result.js index 27a2383e2c3..cadb0d0aabe 100644 --- a/search/js/result.js +++ b/search/js/result.js @@ -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){ @@ -45,7 +46,7 @@ OC.search.showResults=function(results){ var row=$('#searchresults tr.template').clone(); row.removeClass('template'); row.addClass('result'); - if (index == 0){ + if (i == 0){ row.children('td.type').text(name); } row.find('td.result a').attr('href',type[i].link); |