New player dialog and bugfixes

This commit is contained in:
Claude Brisson
2023-12-03 15:05:27 +01:00
parent 188d0e27eb
commit 8510bb69ec
11 changed files with 179 additions and 97 deletions

View File

@@ -7,7 +7,7 @@ onLoad(() => {
$('#cancel, #close').on('click', e => {
e.preventDefault();
if ($('#tournament-infos').hasClass('edit')) {
if ($('#tournament-infos').hasClass('edit') && typeof(tour_id) !== 'undefined') {
$('#tournament-infos').removeClass('edit')
} else {
document.location.href = '/index';