Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
0b72762e
Commit
0b72762e
authored
2 years ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Formulaire jury BUT: vérifie sortie sans enregistrement (JS) #425
parent
99a9b236
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/static/js/jury_but.js
+26
-1
26 additions, 1 deletion
app/static/js/jury_but.js
sco_version.py
+1
-1
1 addition, 1 deletion
sco_version.py
with
27 additions
and
2 deletions
app/static/js/jury_but.js
+
26
−
1
View file @
0b72762e
...
@@ -59,4 +59,29 @@ $(function () {
...
@@ -59,4 +59,29 @@ $(function () {
}
}
}
}
});
});
\ No newline at end of file
// ----- 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 <select>
document
.
querySelectorAll
(
"
select
"
).
forEach
(
sel
=>
codes
.
push
(
sel
.
value
));
return
codes
.
join
();
}
$
(
'
document
'
).
ready
(
function
()
{
FORM_STATE
=
get_form_state
();
});
function
is_modified
()
{
return
FORM_STATE
!=
get_form_state
();
}
window
.
addEventListener
(
"
beforeunload
"
,
function
(
e
)
{
if
(
is_modified
())
{
var
confirmationMessage
=
'
Changements non enregistrés !
'
;
(
e
||
window
.
event
).
returnValue
=
confirmationMessage
;
return
confirmationMessage
;
}
});
This diff is collapsed.
Click to expand it.
sco_version.py
+
1
−
1
View file @
0b72762e
# -*- mode: python -*-
# -*- mode: python -*-
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
SCOVERSION
=
"
9.4.
19
"
SCOVERSION
=
"
9.4.
20
"
SCONAME
=
"
ScoDoc
"
SCONAME
=
"
ScoDoc
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment