mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
make dxcc required
This commit is contained in:
@@ -484,7 +484,7 @@ if (!file_exists('.lock')) {
|
||||
<div class="col-md-6 mb-2">
|
||||
<label for="dxcc" class="form-label"><?= __("DXCC"); ?></label>
|
||||
<select class="form-control" id="dxcc_id" name="dxcc" tabindex="7" aria-describedby="stationCallsignInputHelp">
|
||||
<option value="0" selected=""><?= _pgettext("DXCC Select - No DXCC", "- NONE - (e.g. /MM, /AM)"); ?></option>
|
||||
<option value="" selected=""><?= __("Please select one"); ?></option>
|
||||
<option value="2">Abu Ail Is - A1 (<?= __("Deleted DXCC"); ?>)</option>
|
||||
<option value="3">Afghanistan - YA</option>
|
||||
<option value="4">Agalega & St Brandon Islands - 3B7</option>
|
||||
@@ -1607,6 +1607,7 @@ if (!file_exists('.lock')) {
|
||||
'#callsign',
|
||||
'#city',
|
||||
'#user_email',
|
||||
'#dxcc_id',
|
||||
'#userlocator'
|
||||
];
|
||||
|
||||
@@ -1682,7 +1683,11 @@ if (!file_exists('.lock')) {
|
||||
let check = true;
|
||||
firstUserInputIDs.forEach(function(inputID) {
|
||||
if ($(inputID).val() == '') {
|
||||
input_is_valid($(inputID), 'is-invalid');
|
||||
if (inputID == '#dxcc_id') {
|
||||
input_is_valid($('#dxcc_button'), 'is-invalid');
|
||||
} else {
|
||||
input_is_valid($(inputID), 'is-invalid');
|
||||
}
|
||||
show_userformwarnings('danger', "<?= __("At least one field is empty."); ?>");
|
||||
return check = false;
|
||||
} else {
|
||||
@@ -1690,6 +1695,9 @@ if (!file_exists('.lock')) {
|
||||
hide_userformwarnings();
|
||||
input_is_valid($(inputID), 'is-valid');
|
||||
}
|
||||
if (inputID == '#dxcc_id') {
|
||||
input_is_valid($('#dxcc_button'), 'is-valid');
|
||||
}
|
||||
}
|
||||
});
|
||||
return check;
|
||||
|
||||
Reference in New Issue
Block a user