From 4556f22968d5853069df8f7d827df11eeb0bd2a9 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Tue, 20 Aug 2024 15:33:57 +0200 Subject: [PATCH] Add confirmation before freeze --- view-webapp/src/main/webapp/js/tour-standings.inc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/view-webapp/src/main/webapp/js/tour-standings.inc.js b/view-webapp/src/main/webapp/js/tour-standings.inc.js index b051334..10d69bd 100644 --- a/view-webapp/src/main/webapp/js/tour-standings.inc.js +++ b/view-webapp/src/main/webapp/js/tour-standings.inc.js @@ -97,6 +97,8 @@ onLoad(() => { publishHtml(); }); $('#freeze').on('click', e => { - freeze() + if (confirm("Once frozen, names, levels and even pairings can be changed, but the scores and the standings will stay the same. Freeze the standings?")) { + freeze() + } }); });