Skip to:
Content

BuddyPress.org

Changeset 11665


Ignore:
Timestamp:
08/04/2017 03:01:31 PM (9 years ago)
Author:
djpaul
Message:

Core: fix "are you sure" javascript not affecting elements added after page load.

Fixes #7556

Props yahil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/js/confirm.js

    r9819 r11665  
    33
    44jQuery( document ).ready( function() {
    5         jQuery( 'a.confirm').click( function() {
     5        jQuery( '#buddypress' ).on( 'click', 'a.confirm', function() {
    66                if ( confirm( BP_Confirm.are_you_sure ) ) {
    77                        return true;
    … …  
    99                        return false;
    1010                }
    11         });
    12 });
     11        } );
     12} );
Note: See TracChangeset for help on using the changeset viewer.