Privacy: Fix JSHint errors

Introduced in [42986].

See #43440.


git-svn-id: https://develop.svn.wordpress.org/trunk@42989 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2018-04-19 00:22:11 +00:00
parent 1b598aee0d
commit 770fbb4bcb
2 changed files with 9 additions and 9 deletions

View File

@ -13,7 +13,7 @@
"license": "GPL-2.0-or-later",
"devDependencies": {
"autoprefixer": "^6.5.1",
"grunt": "~0.4.5",
"grunt": "^0.4.5",
"grunt-banner": "^0.6.0",
"grunt-contrib-clean": "~1.0.0",
"grunt-contrib-compress": "~1.3.0",
@ -34,8 +34,8 @@
"grunt-replace": "~1.0.1",
"grunt-rtlcss": "~2.0.1",
"grunt-sass": "2.0.0",
"ink-docstrap": "^1.3.0",
"grunt-webpack": "^3.0.2",
"ink-docstrap": "^1.3.0",
"matchdep": "~1.0.0",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.9.1"

View File

@ -90,25 +90,25 @@ jQuery( document ).ready( function( $ ) {
appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );
}
function on_erasure_failure( textStatus, error ) {
function on_erasure_failure() {
set_action_state( $action, 'remove_personal_data_failed' );
appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] );
}
function do_next_erasure( eraserIndex, pageIndex ) {
$.ajax( {
url: ajaxurl,
url: window.ajaxurl,
data: {
action: 'wp-privacy-erase-personal-data',
eraser: eraserIndex,
id: requestID,
page: pageIndex,
security: nonce,
security: nonce
},
method: 'post'
} ).done( function( response ) {
if ( ! response.success ) {
on_erasure_failure( 'error', response.data );
on_erasure_failure();
return;
}
var responseData = response.data;
@ -130,8 +130,8 @@ jQuery( document ).ready( function( $ ) {
on_erasure_done_success();
}
}
} ).fail( function( jqxhr, textStatus, error ) {
on_erasure_failure( textStatus, error );
} ).fail( function() {
on_erasure_failure();
} );
}
@ -139,5 +139,5 @@ jQuery( document ).ready( function( $ ) {
set_action_state( $action, 'remove_personal_data_processing' );
do_next_erasure( 1, 1 );
} )
} );
} );