2019-04-05, 06:17 PM
Hello dear community,
Lately i was working on a board and i ran into this script :
It was in a few pages which some of theme were private_send, newreply and it doesnt make sense to me..
Anyway this script was giving me a console error since obviously some of those pages doesnt have ".author_avatar img" in them but also in the pages which did had this element i was still getting the error, Btw the error was someting like "$(...) is not a function".
I am curious about where this script came from i want to know if it's plugin related or core, So if anyone know's the answer i'd like to know either.
Thanks, Afik.
Lately i was working on a board and i ran into this script :
<script type="text/javascript">
$(".author_avatar img").error(function () {
$(this).unbind("error").closest('.author_avatar').remove();
});
</script>
It was in a few pages which some of theme were private_send, newreply and it doesnt make sense to me..
Anyway this script was giving me a console error since obviously some of those pages doesnt have ".author_avatar img" in them but also in the pages which did had this element i was still getting the error, Btw the error was someting like "$(...) is not a function".
I am curious about where this script came from i want to know if it's plugin related or core, So if anyone know's the answer i'd like to know either.
Thanks, Afik.