From a285914213c12416ee2266c1257cf42b3d2dc1f3 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Wed, 10 Apr 2024 09:46:47 +0200 Subject: [PATCH] Review previous commit - fix confirmation --- view-webapp/src/main/webapp/js/tour-registration.inc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-webapp/src/main/webapp/js/tour-registration.inc.js b/view-webapp/src/main/webapp/js/tour-registration.inc.js index 3b0184d..b085def 100644 --- a/view-webapp/src/main/webapp/js/tour-registration.inc.js +++ b/view-webapp/src/main/webapp/js/tour-registration.inc.js @@ -157,7 +157,7 @@ onLoad(() => { }); $('#cancel-register').on('click', e => { e.preventDefault(); - if ($('#player-form').hasClass('edit') && !$('#register').hasClass('disabled')) { + if (!$('#player-form').hasClass('add') && !$('#register').hasClass('disabled')) { let confirmMessage = $('#drop-changes').text(); if (!confirm(confirmMessage)) { return false;