Feb 28 2020 07:27 AM
function CustomIcon(ctx) {
if (ctx.CurrentItem.FSObjType == '1') {
var ret = "<a href=\"" + ctx.CurrentItem.FileRef + "\">" +
"<img width='16' height='16' title=\"" + ctx.CurrentItem.FileLeafRef + "\" " +
"class='ms-draggable' alt=\"" + ctx.CurrentItem.FileLeafRef + "\" " +
"src=\"/_layouts/15/images/FOLDER.GIF\" border='0' DragId='0'/></a>";
}
else {
var ret = "<a href=\"" + ctx.CurrentItem.FileRef + "\">" +
"<img width='16' height='16' title=\"" + ctx.CurrentItem.FileLeafRef + "\" " +
"class='ms-draggable' alt=\"" + ctx.CurrentItem.FileLeafRef + "\" " +
"src=\"/_layouts/15/images/" + ctx.CurrentItem['HTML_x0020_File_x0020_Type.File_x0020_Type.mapico'] + "\" " +
"border='0' DragId='0'/></a>";
}
return ret;
}
</script>
Does anyone have any suggestions to make all of my Type Icons working/clickable on every page?
Thanks,
HD