Remove special handing for location of online tournaments

This commit is contained in:
Claude Brisson
2023-12-27 10:04:05 +01:00
parent 1cd57ac58a
commit 40657427f4
3 changed files with 2 additions and 7 deletions

View File

@@ -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'),

View File

@@ -43,7 +43,6 @@
<span class="info"></span>
<input name="location" type="text" placeholder="tournament location" value="#if($tour)$!tour.location#end"/>
<div class="edit online">
or
<label>
<input name="online" type="checkbox" #if($tour && $tour.online) checked #end style="vertical-align: baseline;" value="true"/>&nbsp;<b>online tournament</b>
</label>

View File

@@ -138,14 +138,10 @@
}
info.textContent = txt;
}
} else {
if (input.attr('name') === 'location' && $('input[name="online"]')[0].checked) {
info.textContent = 'online';
} else {
info.textContent = input.value;
}
}
}
});
// prev/next round buttons