mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
[Contesting] Stops whitespace in the getting saved with callsign
If there is any whitespace it will error and if that slips through it gets stripped out. Fixes #3267
This commit is contained in:
parent
27a4983117
commit
13f102bee2
2 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@
|
|||
<div class="row">
|
||||
<div class="mb-3 col-md-3">
|
||||
<label for="callsign"><?php echo lang('gen_hamradio_callsign'); ?></label>
|
||||
<input type="text" class="form-control form-control-sm" id="callsign" name="callsign" required>
|
||||
<input type="text" class="form-control form-control-sm" id="callsign" name="callsign" required pattern="\S+" title="Whitespace is not allowed">
|
||||
<small id="callsign_info" class="badge text-bg-danger"></small>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -433,7 +433,7 @@ function logQso() {
|
|||
|
||||
var data = [[
|
||||
$("#start_date").val() + ' ' + $("#start_time").val(),
|
||||
$("#callsign").val().toUpperCase(),
|
||||
$("#callsign").val($("#callsign").val().replace(/\s+/g, '').toUpperCase()),
|
||||
$("#band").val(),
|
||||
$("#mode").val(),
|
||||
$("#rst_sent").val(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue