Opened 9 years ago
Closed 9 years ago
#7556 closed defect (bug) (fixed)
confirmation message problem (on activity delete)
| Reported by: | 7asobate | Owned by: | djpaul |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Core | Version: | 1.2 |
| Severity: | normal | 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)
#3
@
9 years ago
Does it normally take that long for a mod to reply?
Version 0, edited 9 years ago by
(next)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@7asobate Agree with you, we should use
.onfor dynamical elements.