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:
parent
1b598aee0d
commit
770fbb4bcb
@ -13,7 +13,7 @@
|
|||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^6.5.1",
|
"autoprefixer": "^6.5.1",
|
||||||
"grunt": "~0.4.5",
|
"grunt": "^0.4.5",
|
||||||
"grunt-banner": "^0.6.0",
|
"grunt-banner": "^0.6.0",
|
||||||
"grunt-contrib-clean": "~1.0.0",
|
"grunt-contrib-clean": "~1.0.0",
|
||||||
"grunt-contrib-compress": "~1.3.0",
|
"grunt-contrib-compress": "~1.3.0",
|
||||||
@ -34,8 +34,8 @@
|
|||||||
"grunt-replace": "~1.0.1",
|
"grunt-replace": "~1.0.1",
|
||||||
"grunt-rtlcss": "~2.0.1",
|
"grunt-rtlcss": "~2.0.1",
|
||||||
"grunt-sass": "2.0.0",
|
"grunt-sass": "2.0.0",
|
||||||
"ink-docstrap": "^1.3.0",
|
|
||||||
"grunt-webpack": "^3.0.2",
|
"grunt-webpack": "^3.0.2",
|
||||||
|
"ink-docstrap": "^1.3.0",
|
||||||
"matchdep": "~1.0.0",
|
"matchdep": "~1.0.0",
|
||||||
"webpack": "^3.6.0",
|
"webpack": "^3.6.0",
|
||||||
"webpack-dev-server": "^2.9.1"
|
"webpack-dev-server": "^2.9.1"
|
||||||
|
@ -90,25 +90,25 @@ jQuery( document ).ready( function( $ ) {
|
|||||||
appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );
|
appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );
|
||||||
}
|
}
|
||||||
|
|
||||||
function on_erasure_failure( textStatus, error ) {
|
function on_erasure_failure() {
|
||||||
set_action_state( $action, 'remove_personal_data_failed' );
|
set_action_state( $action, 'remove_personal_data_failed' );
|
||||||
appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] );
|
appendResultsAfterRow( $requestRow, 'notice-error', strings.anErrorOccurred, [] );
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_next_erasure( eraserIndex, pageIndex ) {
|
function do_next_erasure( eraserIndex, pageIndex ) {
|
||||||
$.ajax( {
|
$.ajax( {
|
||||||
url: ajaxurl,
|
url: window.ajaxurl,
|
||||||
data: {
|
data: {
|
||||||
action: 'wp-privacy-erase-personal-data',
|
action: 'wp-privacy-erase-personal-data',
|
||||||
eraser: eraserIndex,
|
eraser: eraserIndex,
|
||||||
id: requestID,
|
id: requestID,
|
||||||
page: pageIndex,
|
page: pageIndex,
|
||||||
security: nonce,
|
security: nonce
|
||||||
},
|
},
|
||||||
method: 'post'
|
method: 'post'
|
||||||
} ).done( function( response ) {
|
} ).done( function( response ) {
|
||||||
if ( ! response.success ) {
|
if ( ! response.success ) {
|
||||||
on_erasure_failure( 'error', response.data );
|
on_erasure_failure();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var responseData = response.data;
|
var responseData = response.data;
|
||||||
@ -130,8 +130,8 @@ jQuery( document ).ready( function( $ ) {
|
|||||||
on_erasure_done_success();
|
on_erasure_done_success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} ).fail( function( jqxhr, textStatus, error ) {
|
} ).fail( function() {
|
||||||
on_erasure_failure( textStatus, error );
|
on_erasure_failure();
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,5 +139,5 @@ jQuery( document ).ready( function( $ ) {
|
|||||||
set_action_state( $action, 'remove_personal_data_processing' );
|
set_action_state( $action, 'remove_personal_data_processing' );
|
||||||
|
|
||||||
do_next_erasure( 1, 1 );
|
do_next_erasure( 1, 1 );
|
||||||
} )
|
} );
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user