- Timestamp:
- 04/19/2018 12:22:11 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/xfn.js
r42986 r42989 91 91 } 92 92 93 function on_erasure_failure( textStatus, error) {93 function on_erasure_failure() { 94 94 set_action_state( $action, 'remove_personal_data_failed' ); 95 95 appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] ); … … 98 98 function do_next_erasure( eraserIndex, pageIndex ) { 99 99 $.ajax( { 100 url: ajaxurl,100 url: window.ajaxurl, 101 101 data: { 102 102 action: 'wp-privacy-erase-personal-data', … … 104 104 id: requestID, 105 105 page: pageIndex, 106 security: nonce ,106 security: nonce 107 107 }, 108 108 method: 'post' 109 109 } ).done( function( response ) { 110 110 if ( ! response.success ) { 111 on_erasure_failure( 'error', response.data);111 on_erasure_failure(); 112 112 return; 113 113 } … … 131 131 } 132 132 } 133 } ).fail( function( jqxhr, textStatus, error) {134 on_erasure_failure( textStatus, error);133 } ).fail( function() { 134 on_erasure_failure(); 135 135 } ); 136 136 } … … 140 140 141 141 do_next_erasure( 1, 1 ); 142 } ) 142 } ); 143 143 } );
Note: See TracChangeset
for help on using the changeset viewer.