diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-17 17:29:22 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-05 19:22:22 +0200 |
commit | b03755c0ec3dedc15a5dfbeceb045a28a04f8006 (patch) | |
tree | 61899315004903c5a66ac4d7d9ceae267d9e6049 /search | |
parent | 70be98f6d0bee928a25bd7a38b543dac02084db5 (diff) | |
download | nextcloud-server-b03755c0ec3dedc15a5dfbeceb045a28a04f8006.tar.gz nextcloud-server-b03755c0ec3dedc15a5dfbeceb045a28a04f8006.zip |
fix minor typos
Diffstat (limited to 'search')
-rw-r--r-- | search/js/result.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/search/js/result.js b/search/js/result.js index 780f513edcf..856330414a0 100644 --- a/search/js/result.js +++ b/search/js/result.js @@ -105,3 +105,28 @@ OC.search.renderCurrent=function(){ $(result).addClass('current'); } }; + +// +// customize search results, currently replaces a technical type with a more human friendly version +// TODO implement search result renderers instead of changing results after adding them to the DOM +// +OC.search.customResults.file = function (row, item) { + if(row.children('td.type').text() === 'file') { + row.children('td.type').text(t('lib','Files')); + }; +} +OC.search.customResults.folder = function (row, item) { + if(row.children('td.type').text() === 'folder') { + row.children('td.type').text(t('lib','Folders')); + }; +} +OC.search.customResults.image = function (row, item) { + if(row.children('td.type').text() === 'image') { + row.children('td.type').text(t('lib','Images')); + }; +} +OC.search.customResults.audio = function (row, item) { + if(row.children('td.type').text() === 'audio') { + row.children('td.type').text(t('lib','Audio')); + }; +} |