mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 18:05:45 +03:00
Add a "remove pledge" action
This commit is contained in:
parent
fa8bb48ad6
commit
fedfface23
5 changed files with 45 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global ajaxurl, FiveForTheFuture, fftfContributors, jQuery */
|
||||
/* global FiveForTheFuture, fftfContributors, jQuery */
|
||||
/* eslint no-alert: "off" */
|
||||
jQuery( document ).ready( function( $ ) {
|
||||
let ajaxurl = window.ajaxurl;
|
||||
|
@ -153,4 +153,10 @@ jQuery( document ).ready( function( $ ) {
|
|||
_addContributors();
|
||||
}
|
||||
} );
|
||||
|
||||
$( '#5ftf-pledge-remove' ).on( 'click', function( event ) {
|
||||
if ( ! confirm( FiveForTheFuture.removePrompt ) ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue