# HG changeset patch # User Marcin Lulek # Date 2019-02-12 10:03:22 # Node ID bca1cba9243017739d58562e05cb261f5d1cf573 # Parent 95e71a57e8ce13b78f7c89f3f668e49f684ac1e9 files: fixed icons in file tree search diff --git a/rhodecode/public/js/src/rhodecode/files.js b/rhodecode/public/js/src/rhodecode/files.js --- a/rhodecode/public/js/src/rhodecode/files.js +++ b/rhodecode/public/js/src/rhodecode/files.js @@ -137,11 +137,12 @@ var fileBrowserListeners = function(node var new_url = url_base.replace('__FPATH__',n); var typeObj = { - dir: 'icon-folder browser-dir', - file: 'icon-file browser-file' + dir: 'icon-directory browser-dir', + file: 'icon-file-text browser-file' }; + var typeIcon = ''.format(typeObj[t]); - match.push('{2}{3}'.format(t,new_url,typeIcon, n_hl)); + match.push('{1}{2}'.format(new_url,typeIcon, n_hl)); } } if(results.length > limit){