Skip to:
Content

bbPress.org

Changeset 7174


Ignore:
Timestamp:
01/03/2021 06:44:38 AM (5 months ago)
Author:
johnjamesjacoby
Message:

Replies: fix hierarchical replies not scrolling to the new form location when admin toolbar is hidden.

This commit checks that the adminbar variable is not empty before also making sure that it is not undefined, as it's possible for it to also simply be null when the toolbar is hidden.

In branches/2.6 for 2.6.7. Fixes #3327.

Props mjonesnerdery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/templates/default/js/reply.js

    r7147 r7174  
    125125
    126126        /* Offset by the adminbar */
    127         if ( typeof ( adminbar ) !== 'undefined' ) {
     127        if ( adminbar && ( typeof ( adminbar ) !== 'undefined' ) ) {
    128128            offset = adminbar.scrollHeight;
    129129        }
Note: See TracChangeset for help on using the changeset viewer.