Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/search
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-06 13:28:43 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-06 13:28:43 +0400
commit7c29645f22eeb686ce7a25c9f8ad97b464d7febb (patch)
tree9e987d1eece2d0851bec64510b38f2b52e678de7 /search
parent2801f0f2228c571a0bfd9de3684f87e0fe408c57 (diff)
allow apps to add translation for search result typeid
Diffstat (limited to 'search')
-rw-r--r--search/js/result.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/search/js/result.js b/search/js/result.js
index b300f90f4c2..04e999c62ee 100644
--- a/search/js/result.js
+++ b/search/js/result.js
@@ -64,7 +64,7 @@ OC.search.showResults=function(results){
row.data('index',index);
if (i === 0){
- var typeName = typeid.charAt(0).toUpperCase() + typeid.slice(1);
+ var typeName = OC.search.resultTypes[typeid];
row.children('td.type').text(t('lib', typeName));
}
row.find('td.result div.name').text(type[i].name);