Prevent saved changes message when leaving page closes #29359

This commit is contained in:
roykho 2021-03-26 15:09:43 -07:00
parent 50e036f934
commit 4cf6625f0c
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@
shippingMethod.trigger( 'change:methods' ); shippingMethod.trigger( 'change:methods' );
shippingMethod.changes = {}; shippingMethod.changes = {};
shippingMethod.trigger( 'saved:methods' ); shippingMethod.trigger( 'saved:methods' );
window.onbeforeunload = null;
} else { } else {
window.alert( data.strings.save_failed ); window.alert( data.strings.save_failed );
} }