misc: disable beforeunload when submitting the form (#88233) #1273
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/88233-beforeunload-not-post"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
f83768a49e
to7b45d83bd2
@ -9,6 +9,7 @@ $(function() {
$('a[rel=popup], a[data-popup]').data('title-selector', 'h2');
$('a[rel=popup], a[data-popup]').data('close-button-text', WCS_I18N.close);
$(document).on('gadjo:dialog-loaded', function(e, dialog) {
window.disable_beforeunload = true;
Par rapport à la première version j'ajoute ça, parce qu'en saisie backoffice, quand on clique sur le bouton "Abandonner", ça ouvre une popup pour confirmer, et quand on validait, il y avait alors l'alerte du navigateur.