mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Automatically delete PayPal Package
This commit is contained in:
parent
2da1fa0323
commit
96f8c5ef97
2 changed files with 11 additions and 2 deletions
|
@ -92,6 +92,17 @@ document.addEventListener( 'DOMContentLoaded', () => {
|
|||
} );
|
||||
}
|
||||
|
||||
jQuery( document ).on(
|
||||
'mouseover mouseout',
|
||||
'#dhl_delete_label',
|
||||
function ( event ) {
|
||||
jQuery( '#ppcp-shipment-status' )
|
||||
.val( 'CANCELLED' )
|
||||
.trigger( 'change' );
|
||||
document.querySelector( '.update_shipment' ).click();
|
||||
}
|
||||
);
|
||||
|
||||
if (
|
||||
wcShippingTaxSyncEnabled &&
|
||||
typeof wcShippingTaxSyncEnabled !== 'undefined'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue