Code review tweaks
This commit is contained in:
parent
c552362b73
commit
f65b817fcf
|
@ -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 );
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -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' ) ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue