Skip to content
Snippets Groups Projects
Commit 9895bfec authored by Jean-Marie Place's avatar Jean-Marie Place
Browse files

fix Terminer link disable

parent c37e2727
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
############################################################################## ##############################################################################
"""Saisie des notes """Saisie des notes
Formulaire revu en juillet 2016 Formulaire revu en juillet 2016
""" """
import html import html
......
...@@ -5,16 +5,22 @@ let nbSaving = 0; // nombre de requêtes en cours ...@@ -5,16 +5,22 @@ let nbSaving = 0; // nombre de requêtes en cours
function incSaving() { function incSaving() {
nbSaving++; nbSaving++;
// disable button 'Terminer' // disable button 'Terminer'
anchor = document.querySelector(".link-terminer"); let anchor = document.querySelector(".link-terminer")
anchor.style.display = "none" anchor.style.pointerEvents = "none";
anchor.style.color = "gray";
anchor.style.textDecoration = "none";
anchor.style.cursor = "not-allowed";
} }
function decSaving() { function decSaving() {
nbSaving--; nbSaving--;
if (nbSaving <= 0) { if (nbSaving <= 0) {
// re-enable bouton 'Terminer' // re-enable bouton 'Terminer'
anchor = document.querySelector(".link-terminer"); let anchor = document.querySelector(".link-terminer");
anchor.style.display = ""; anchor.style.pointerEvents = "unset";
anchor.style.color = "unset";
anchor.style.textDecoration = "unset";
anchor.style.cursor = "unset";
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment