Code review tweaks
This commit is contained in:
parent
c552362b73
commit
f65b817fcf
|
@ -114,8 +114,8 @@ jQuery( function ( $ ) {
|
|||
|
||||
wcSystemStatus.init();
|
||||
|
||||
$( '#log-viewer-select' ).on( 'click', ' h2 a.page-title-action', function( e ) {
|
||||
e.stopImmediatePropagation();
|
||||
return confirm( woocommerce_admin_system_status.delete_log_confirmation );
|
||||
$( '#log-viewer-select' ).on( 'click', 'h2 a.page-title-action', function( evt ) {
|
||||
evt.stopImmediatePropagation();
|
||||
return window.confirm( woocommerce_admin_system_status.delete_log_confirmation );
|
||||
});
|
||||
});
|
||||
|
|
|
@ -349,7 +349,7 @@ class WC_Admin_Assets {
|
|||
'wc-admin-system-status',
|
||||
'woocommerce_admin_system_status',
|
||||
array(
|
||||
'delete_log_confirmation' => esc_html__( 'Are you sure you want to delete this log?', 'woocommerce' ),
|
||||
'delete_log_confirmation' => esc_js( __( 'Are you sure you want to delete this log?', 'woocommerce' ) ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue