summaryrefslogtreecommitdiffstats
path: root/search
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-09-30 06:51:40 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-09-30 06:51:40 +0200
commit241862756eaa0fdbdcc278d14c6c1652dc4237d0 (patch)
tree0954204d047f587424384f60fd4c4e1d334ec8da /search
parent3273beb887fb8fd4c317a0263caa38a26e34f95e (diff)
parent258782584e490b92ccfcf032921aa7062a28da9f (diff)
downloadnextcloud-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.js3
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);