Introduce resubmission avoidance for contest logging

The contest logging page doesn't have resubmission avoidance so users could click
the save button multiple times and get duplicated QSOs. What's more, this happends
more commonly in contest because of the high pace.

The fix was borrowed from the implimentation in `assets/js/sections/qso.js'.

Ref: e4d17a2a07/assets/js/sections/qso.js (L158)

However, this looks great but could be annoying for slow servers. It could also
be implemented by blanking the qso info earlier so that the user wouldn't be
able to click again. But this may trick users to think the QSO was already uploaded
when it really isn't.

Signed-off-by: William Goodspeed <goodspeed@anche.no>
This commit is contained in:
William Goodspeed
2025-10-23 21:56:08 +08:00
parent 2f3a08f5a6
commit c3e76e67a8
2 changed files with 7 additions and 1 deletions

View File

@@ -236,7 +236,7 @@
</div>
<button type="button" class="mb-3 btn btn-sm btn-secondary" onclick="reset_log_fields()"><i class="fas fa-sync-alt"></i> <?= __("Reset QSO"); ?></button>
<button type="button" class="mb-3 btn btn-sm btn-primary" onclick="logQso();"><i class="fas fa-save"></i> <?= __("Save QSO"); ?></button>
<button type="button" class="mb-3 btn btn-sm btn-primary" onclick="logQso();" id="saveQso"><i class="fas fa-save"></i> <?= __("Save QSO"); ?></button>
</form>
</div>
</div>