[buddypress-trac] [BuddyPress Trac] #7556: confirmation message problem (on activity delete)
buddypress-trac
noreply at wordpress.org
Fri Jun 30 13:03:38 UTC 2017
#7556: confirmation message problem (on activity delete)
--------------------------+-----------------------------
Reporter: 7asobate | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: (not sure) | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
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;
}
});
});
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7556>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list