unsuported jquery .error() method - Printable Version +- D&D Forums - MyBB Plugins & Themes (https://developement.design/forum) +-- Forum: MyBB Ressources (https://developement.design/forum/forumdisplay.php?fid=5) +--- Forum: Premium MyBB Themes (https://developement.design/forum/forumdisplay.php?fid=9) +---- Forum: Support (https://developement.design/forum/forumdisplay.php?fid=18) +---- Thread: unsuported jquery .error() method (/showthread.php?tid=27975) |
unsuported jquery .error() method - Vitor Costa (APDCA IT) - 11-18-2022 Hi I brought the Light Emerald Extended version... Despite this I was using (configuring) the Emerald Light (free) since the future members of the forum are a bit anti-tech and I want to keep layout most simple possible... I found my browsers giving an javascript error: TypeError: $(".author_avatar img").error is not a function. (In '$(".author_avatar img").error(function () { $(this).unbind("error").closest('.author_avatar').remove(); })', '$(".author_avatar img").error' is undefined) this is present templates: showthread private_read private_send newthread Code: <script type="text/javascript"> Seems that que actual JQuery libs versions don't support .error() method anymore... I was thinking on comment (or remove) this script, what could be broke if then? Or can we replace that with equivalent? I installed the Light Emerald Extended version to compare and it runs same error... thanks RE: unsuported jquery .error() method - AmazOuz - 11-19-2022 Hello For the theme support please post in this appropriate forum & not the General Support section : https://developement.design/forum/forumdisplay.php?fid=12 You can comment or remove that code without any worries, I discovered this when I was making some custom work for a customer That piece of code is in fact useless in the latest versions of Emerald Extended, it's all right. Kind Regards Amazouz |