##// END OF EJS Templates
files: fixed icons in file tree search
ergo -
r3472:bca1cba9 default
parent child Browse files
Show More
@@ -137,11 +137,12 b' var fileBrowserListeners = function(node'
137 var new_url = url_base.replace('__FPATH__',n);
137 var new_url = url_base.replace('__FPATH__',n);
138
138
139 var typeObj = {
139 var typeObj = {
140 dir: 'icon-folder browser-dir',
140 dir: 'icon-directory browser-dir',
141 file: 'icon-file browser-file'
141 file: 'icon-file-text browser-file'
142 };
142 };
143
143 var typeIcon = '<i class="{0}"></i>'.format(typeObj[t]);
144 var typeIcon = '<i class="{0}"></i>'.format(typeObj[t]);
144 match.push('<tr class="browser-result"><td><a class="browser-{0} pjax-link" href="{1}">{2}{3}</a></td><td colspan="5"></td></tr>'.format(t,new_url,typeIcon, n_hl));
145 match.push('<tr class="browser-result"><td><a class="pjax-link" href="{0}">{1}{2}</a></td><td colspan="5"></td></tr>'.format(new_url,typeIcon, n_hl));
145 }
146 }
146 }
147 }
147 if(results.length > limit){
148 if(results.length > limit){
General Comments 0
You need to be logged in to leave comments. Login now