Code review tweaks

This commit is contained in:
Beka Rice 2017-04-25 21:45:42 -04:00
parent c552362b73
commit f65b817fcf
2 changed files with 4 additions and 4 deletions

View File

@ -114,8 +114,8 @@ jQuery( function ( $ ) {
wcSystemStatus.init(); wcSystemStatus.init();
$( '#log-viewer-select' ).on( 'click', ' h2 a.page-title-action', function( e ) { $( '#log-viewer-select' ).on( 'click', 'h2 a.page-title-action', function( evt ) {
e.stopImmediatePropagation(); evt.stopImmediatePropagation();
return confirm( woocommerce_admin_system_status.delete_log_confirmation ); return window.confirm( woocommerce_admin_system_status.delete_log_confirmation );
}); });
}); });

View File

@ -349,7 +349,7 @@ class WC_Admin_Assets {
'wc-admin-system-status', 'wc-admin-system-status',
'woocommerce_admin_system_status', 'woocommerce_admin_system_status',
array( 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' ) ),
) )
); );
} }