Various cosmetic tweaks

This commit is contained in:
Claude Brisson
2024-04-11 22:15:47 +02:00
parent bdf412e592
commit 87e10f5cb6
8 changed files with 49 additions and 12 deletions

View File

@@ -189,3 +189,5 @@ Log in using Se connecter avec
(reserved to FFG actors) (réservé aux acteurs FFG)
Log in using an email Se connecter avec un email
password mot de passe
Warning: publishing partial results at round Attention: publication partielle des résultats à la ronde
out of sur

View File

@@ -198,8 +198,17 @@ onLoad(() => {
// $('#player-form')[0].requestSubmit() not working?!
$('#player-form')[0].dispatchEvent(new CustomEvent('submit', {cancelable: true}));
});
$('#search-form').on('submit', e => {
// this form is never meant to be submitted
e.preventDefault();
return false;
});
$('#player-form').on('submit', e => {
e.preventDefault();
if ($('#register').hasClass('disabled')) {
// user pressed enter
return false;
}
let form = $('#player-form')[0];
let player = {
name: form.val('name'),

View File

@@ -221,7 +221,7 @@
<div class="popup-footer">
<button id="cancel-register" type="button" class="ui gray right labeled icon floating button">
<i class="times icon"></i>
<span class="edition">Close</span>
<span class="edition">Cancel</span>
<span class="creation">Close</span>
</button>
<button id="unregister" type="button" class="ui red right labeled icon floating button">

View File

@@ -100,6 +100,9 @@
Publish standings
</div>
<div class="popup-content">
#if($round < $tour.rounds)
<div class="warning">Warning: publishing partial results at round <span>$round</span> out of <span>$tour.rounds</span>!</div>
#end
<form class="ui edit form">
<div class="field">
<label>Encoding</label>