MyBB Community Forums

Full Version: What does this javascript do in private_read?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I noticed this javascript in the footer of the private_read template
What does this javascript do in private_read?

<script type="text/javascript">
$(".author_avatar img").error(function () {
$(this).unbind("error").closest('.author_avatar').remove();
});
</script>
I believe it removes an avatar image if an error occurs in it.. not 100% sure though.