Skip to content

Commit 4b79731

Browse files
fusharveluca93
authored andcommitted
Show confirmation dialog before reevaluation
1 parent 9c0bdee commit 4b79731

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cms/server/admin/templates/macro/reevaluation_buttons.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{% elif contest_id is not none %}
3636
{% set invalidate_arguments = {"contest_id": contest_id} %}
3737
{% endif %}
38-
<button onclick="cmsrpc_request(
38+
<button onclick="confirm('Do you really want to reevaluate?') && cmsrpc_request(
3939
'EvaluationService', 0,
4040
'invalidate_submission', {
4141
{% for key, value in invalidate_arguments.items() %}
@@ -48,7 +48,7 @@
4848
disabled
4949
{% endif %}
5050
title="Compilation" >C</button>
51-
<button onclick="cmsrpc_request(
51+
<button onclick="confirm('Do you really want to reevaluate?') && cmsrpc_request(
5252
'EvaluationService', 0,
5353
'invalidate_submission', {
5454
{% for key, value in invalidate_arguments.items() %}
@@ -61,7 +61,7 @@
6161
disabled
6262
{% endif %}
6363
title="Evaluation" >E</button>
64-
<button onclick="cmsrpc_request(
64+
<button onclick="confirm('Do you really want to reevaluate?') && cmsrpc_request(
6565
'ScoringService', 0,
6666
'invalidate_submission', {
6767
{% for key, value in invalidate_arguments.items() %}

0 commit comments

Comments
 (0)