Prevent saved changes message when leaving page closes #29359
This commit is contained in:
parent
50e036f934
commit
4cf6625f0c
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue