Skip to:
Content

bbPress.org

Changeset 7173


Ignore:
Timestamp:
01/03/2021 06:44:00 AM (2 years 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 trunk for 2.7.0. See #3327.

Props mjonesnerdery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/js/reply.js

    r7148 r7173  
    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.