Use reload instead of assigning href to window.location
This commit is contained in:
parent
a16eba8543
commit
dc12b7d2d6
|
@ -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.split('#')[0];
|
||||
window.location.reload();
|
||||
} else {
|
||||
window.alert( response.data.error );
|
||||
wc_meta_boxes_order_items.reload_items();
|
||||
|
|
Loading…
Reference in New Issue