]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix 'Search only shows the app name of the first app'
authorBart Visscher <bartv@thisnet.nl>
Mon, 17 Sep 2012 16:00:54 +0000 (18:00 +0200)
committerBart Visscher <bartv@thisnet.nl>
Mon, 17 Sep 2012 18:00:31 +0000 (20:00 +0200)
Fixes: oc-1369
search/js/result.js

index 27a2383e2c34f64cb43c6b6b8c3c0e75a242141f..aaecde08c6b95bfbdea41ef620a8f8b8b5227bc4 100644 (file)
@@ -45,7 +45,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);