Using JQuery we can change the document type icon and also we can specify new icon for any type of new files.
At first we need to add reference of JQuery in the page after that we will add below code.
1 2 3 4 5 6 7 8 9 10 11 |
$(document).ready(function(){ $('td.ms-vb-icon').each(function(){ $(this).find('img[title$=".mov"]').attr('src', '/_layouts/15/images/icwmv.gif'); $(this).find('img[title$=".mp4"]').attr('src', '/_layouts/15/images/icwmv.gif'); $(this).find('img[title$=".xlsx"]').attr('src', '/_layouts/15/images/icxlsx.png'); }); }); |