Strip hash from URL that prevents reload on refunds

This commit is contained in:
Joshua Flowers 2018-12-04 10:11:40 +08:00
parent 2fed9b94a3
commit a16eba8543
1 changed files with 1 additions and 1 deletions

View File

@ -750,7 +750,7 @@ jQuery( function ( $ ) {
$.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) {
if ( true === response.success ) {
// Redirect to same page for show the refunded status
window.location.href = window.location.href;
window.location.href = window.location.href.split('#')[0];
} else {
window.alert( response.data.error );
wc_meta_boxes_order_items.reload_items();