Skip to:
Content

BuddyPress.org

Changeset 9202


Ignore:
Timestamp:
11/28/2014 08:04:38 PM (10 years ago)
Author:
imath
Message:

In Activity Administration, avoid a javascript error by making sure the postbox object is defined.

props hnla

Fixes #6050

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/admin/js/admin.js

    r8958 r9202  
    166166
    167167    // redo the post box toggles to reset the one made by comment.js in favor
    168     // of activity administration page id so that metaboxes are still collapsible 
     168    // of activity administration page id so that metaboxes are still collapsible
    169169    // in single Activity Administration screen.
    170     postboxes.add_postbox_toggles( bp_activity_admin_vars.page );
     170    if ( typeof postboxes !== 'undefined' ) {
     171        postboxes.add_postbox_toggles( bp_activity_admin_vars.page );
     172    }
    171173});
    172174
Note: See TracChangeset for help on using the changeset viewer.