No recent searches
Popular Articles
Sorry! nothing found for
Posted 11 months ago by Guest
document.querySelectorAll('.portal-attachment-thumbnail-img').forEach(function(img) { img.addEventListener('error', function () { attachment_error_image(this); }); }); const attachment_error_image = (attachment) => { const parentElement = attachment.parentElement; const defaultIcon = `${escapeHtml(attachment.dataset.extension)}`; parentElement.innerHTML = defaultIcon; }; 0 Votes
0 Votes
1 Comments
Guest posted 11 months ago
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
Update Close
document.querySelectorAll('.portal-attachment-thumbnail-img').forEach(function(img) { img.addEventListener('error', function () { attachment_error_image(this); }); }); const attachment_error_image = (attachment) => { const parentElement = attachment.parentElement; const defaultIcon = `${escapeHtml(attachment.dataset.extension)}`; parentElement.innerHTML = defaultIcon; };
0 Votes
1 Comments
Guest posted 11 months ago
0 Votes
Login to post a comment