From 40657427f4e304ecda59d3d4c2c3b1bb00a959df Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Wed, 27 Dec 2023 10:04:05 +0100 Subject: [PATCH] Remove special handing for location of online tournaments --- view-webapp/src/main/webapp/js/tour-information.inc.js | 2 +- view-webapp/src/main/webapp/tour-information.inc.html | 1 - view-webapp/src/main/webapp/tour.html | 6 +----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/view-webapp/src/main/webapp/js/tour-information.inc.js b/view-webapp/src/main/webapp/js/tour-information.inc.js index 1429745..e4b6347 100644 --- a/view-webapp/src/main/webapp/js/tour-information.inc.js +++ b/view-webapp/src/main/webapp/js/tour-information.inc.js @@ -112,7 +112,7 @@ onLoad(() => { rounds: form.val('rounds'), country: form.val('country'), online: form.val('online'), - location: form.val('online') ? "" : form.val('location'), + location: form.val('location'), pairing: { type: form.val('pairing'), // mmFloor: form.val('mmFloor'), diff --git a/view-webapp/src/main/webapp/tour-information.inc.html b/view-webapp/src/main/webapp/tour-information.inc.html index 92e75c5..e1e6f58 100644 --- a/view-webapp/src/main/webapp/tour-information.inc.html +++ b/view-webapp/src/main/webapp/tour-information.inc.html @@ -43,7 +43,6 @@
- or diff --git a/view-webapp/src/main/webapp/tour.html b/view-webapp/src/main/webapp/tour.html index eb2e1fa..f354359 100644 --- a/view-webapp/src/main/webapp/tour.html +++ b/view-webapp/src/main/webapp/tour.html @@ -139,11 +139,7 @@ info.textContent = txt; } } else { - if (input.attr('name') === 'location' && $('input[name="online"]')[0].checked) { - info.textContent = 'online'; - } else { - info.textContent = input.value; - } + info.textContent = input.value; } } });