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;