MyBB Community Forums

Full Version: Clear all time outs inline_edit.js
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This script affects all setTimeout, as the jGrowl and others custom scripts.

inline_edit.js
$(this).bind('mouseup mouseleave', function()

{
        // Clear all time outs
        var wid = window.setTimeout(function() {}, 0);

        while(wid--)
        {
                window.clearTimeout(wid); // will do nothing if no timeout with id is present
        }
});

example:
/forumdisplay.php

add rating of thread, clilc on your thread title and bug jGrowl alert ratting.



sorry for my English Confused
I see what you mean now, it should use a better code indeed. No idea why all are timeouts are cleared.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/1561

Thanks for contributing to MyBB!

Regards,
The MyBB Group