Strip hash from URL that prevents reload on refunds
This commit is contained in:
parent
2fed9b94a3
commit
a16eba8543
|
@ -750,7 +750,7 @@ jQuery( function ( $ ) {
|
||||||
$.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) {
|
$.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) {
|
||||||
if ( true === response.success ) {
|
if ( true === response.success ) {
|
||||||
// Redirect to same page for show the refunded status
|
// Redirect to same page for show the refunded status
|
||||||
window.location.href = window.location.href;
|
window.location.href = window.location.href.split('#')[0];
|
||||||
} else {
|
} else {
|
||||||
window.alert( response.data.error );
|
window.alert( response.data.error );
|
||||||
wc_meta_boxes_order_items.reload_items();
|
wc_meta_boxes_order_items.reload_items();
|
||||||
|
|
Loading…
Reference in New Issue