Skip to content
Snippets Groups Projects
Commit ef342f23 authored by Fake_Dev's avatar Fake_Dev
Browse files

Added confirmation on ending the week

parent cb50a715
No related branches found
No related tags found
1 merge request!6519Added confirmation on ending the week
......@@ -7,7 +7,7 @@
<<if _Pass != "End Week">>
<<if _Pass == "Main">>
<strong> <span id="endWeekButton">
<div><<link "$nextButton">> <<goto $nextLink>> <</link>> @@.cyan;[Ent]@@</div>
<div><<link "$nextButton">><</link>> @@.cyan;[Ent]@@</div>
</span> </strong>
<<if $rulesAssistantAuto == 1 && DefaultRulesError()>>
<div>@@.yellow;WARNING: Rules Assistant has rules with errors!@@</div>
......@@ -20,6 +20,15 @@
</span> </strong>
<</if>>
<</if>>
<<script>>
$(document).one(':passageend', () => {
$('#endWeekButton').click(function() {
if (confirm("Are you sure you want to end the week?")) {
Engine.play(V.nextLink);
}
});
});
<</script>>
<</widget>>
<<widget "security">>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment