From 9fb70aef5d8e4570e7d557745ea1f4cfbb11989f Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 25 Dec 2022 16:40:05 -0300 Subject: [PATCH] =?UTF-8?q?Formulaire=20jury=20BUT:=20v=C3=A9rifie=20sorti?= =?UTF-8?q?e=20sans=20enregistrement=20(JS)=20#425?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/js/jury_but.js | 25 +++++++++++++++++++++++++ sco_version.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/app/static/js/jury_but.js b/app/static/js/jury_but.js index c53b223a..c1479129 100644 --- a/app/static/js/jury_but.js +++ b/app/static/js/jury_but.js @@ -117,3 +117,28 @@ window.addEventListener("beforeunload", function (e) { return confirmationMessage; } }); + +// ----- Etat du formulaire jury pour éviter sortie sans enregistrer +let FORM_STATE = ""; +// Une chaine décrivant l'état du form +function get_form_state() { + let codes = []; + // il n'y a que des