Skip to:
Content

BuddyPress.org

Changeset 9638


Ignore:
Timestamp:
03/24/2015 02:48:42 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Administration: Hook into bp_admin_enqueue_scripts to ensure bp-confirm script is registered and available.

Fixes a bug where clicking "Delete" links for XProfile fields & groups would not prompt with "Are you sure?".

Fixes #6317.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r9606 r9638  
    107107
    108108}
    109 add_action( 'bp_enqueue_scripts',    'bp_core_confirmation_js' );
    110 add_action( 'admin_enqueue_scripts', 'bp_core_confirmation_js' );
     109add_action( 'bp_enqueue_scripts',       'bp_core_confirmation_js' );
     110add_action( 'bp_admin_enqueue_scripts', 'bp_core_confirmation_js' );
    111111
    112112/**
  • trunk/src/bp-xprofile/bp-xprofile-cssjs.php

    r9351 r9638  
    2828    }
    2929}
    30 add_action( 'admin_enqueue_scripts', 'xprofile_add_admin_css' );
     30add_action( 'bp_admin_enqueue_scripts', 'xprofile_add_admin_css' );
    3131
    3232/**
     
    6565    }
    6666}
    67 add_action( 'admin_enqueue_scripts', 'xprofile_add_admin_js', 1 );
     67add_action( 'bp_admin_enqueue_scripts', 'xprofile_add_admin_js', 1 );
Note: See TracChangeset for help on using the changeset viewer.