2.2 regession: XF._IgnoredWatcher.initializeHash does not work es expected

Status
This content is read-only, or is not open for further replies.

Kirby

Guest
offline
If the location hash points to ignored content, this content should be unhidden so scrolling works correctly.

This does not work in XenForo 2.3 due to a bug that was introduced when removing jQuery.

XenForo 2.2 JS
Code:

Code:
initializeHash: function()
{
    if (window.location.hash)
    {
        var cleanedHash = window.location.hash.replace(/[^\w_#-]/g, '');
        if (cleanedHash === '#')
        {
            return;
        }

        var $jump = $(cleanedHash),

XenForo 2.3 JS
Code:

...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom