Opened 7 years ago
Closed 7 years ago
#7556 closed defect (bug) (fixed)
confirmation message problem (on activity delete)
Reported by: | 7asobate | Owned by: | djpaul |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 1.2 |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
The delete button doesn't trigger the confirmation "are you sure" alert on the newly added activities and the activities that are shown after clicking on the "load more" button.
I think buddypress/bp-core/js/confirm.js should change from
jQuery( document ).ready( function() { jQuery( 'a.confirm').click( function() { if ( confirm( BP_Confirm.are_you_sure ) ) { return true; } else { return false; } }); });
to something like this
jQuery( document ).ready( function() { jQuery('#buddypress').on( 'click', 'a.confirm', function() { if ( confirm( BP_Confirm.are_you_sure ) ) { return true; } else { return false; } }); });
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
@7asobate Agree with you, we should use
.on
for dynamical elements.