Skip to:
Content

BuddyPress.org

Ticket #6050: 6050.patch

File 6050.patch, 646 bytes (added by hnla, 10 years ago)

Add check for postboxes defined

  • src/bp-activity/admin/js/admin.js

     
    167167        // redo the post box toggles to reset the one made by comment.js in favor
    168168        // 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
     171        if( typeof postboxes !== 'undefined' ) {
     172                postboxes.add_postbox_toggles( bp_activity_admin_vars.page );
     173        }
     174
    171175});
    172176
    173177})(jQuery);