Separate gridsquare and make input shown in upper case

This commit is contained in:
phl0
2025-08-14 15:21:05 +02:00
parent d9df9f16cc
commit 2a17925cbd
2 changed files with 8 additions and 1 deletions

View File

@@ -201,4 +201,5 @@
<label style="display:none" id="editDistanceInputLabel" class="mx-2 w-auto" for="editDistanceInput"><?= __("Distance (in km). Leave blank to recalculate distance. (It will only work if a gridsquare is set)."); ?></label>
<input style="display:none" class="form-control form-control-sm w-auto" id="editDistanceInput" type="text" name="editDistanceInput" placeholder="" aria-label="editDistanceInput">
<input style="display:none" class="form-control form-control-sm w-auto uppercase" id="editDokInput" type="text" name="editDokInput" placeholder="" aria-label="editDokInput">
<input style="display:none" class="form-control form-control-sm w-auto uppercase" id="editGridsquareInput" type="text" name="editGridsquareInput" placeholder="" aria-label="editGridsquareInput">
</form>

View File

@@ -207,6 +207,9 @@ function saveBatchEditQsos(id_list) {
if (column == 'dok') {
value = $("#editDokInput").val();
}
if (column == 'gridsquare') {
value = $("#editGridsquareInput").val();
}
$.ajax({
url: base_url + 'index.php/logbookadvanced/saveBatchEditQsos',
@@ -262,6 +265,7 @@ function changeEditType(type) {
$('#editDistanceInputLabel').hide();
$('#editDistanceInput').hide();
$('#editDokInput').hide();
$('#editGridsquareInput').hide();
if (type == "dxcc") {
$('#editDxcc').show();
} else if (type == "iota") {
@@ -305,7 +309,7 @@ function changeEditType(type) {
$('#editEqsl').show();
} else if (type == "continent") {
$('#editContinent').show();
} else if (type == "gridsquare" || type == "sota" || type == "wwff" || type == "operator" || type == "pota" || type == "comment" || type == "qslvia" || type == "contest" || type == "qslmsg" || type == "stationpower" || type == 'stxstring' || type == 'rsts' || type == 'rstr') {
} else if (type == "sota" || type == "wwff" || type == "operator" || type == "pota" || type == "comment" || type == "qslvia" || type == "contest" || type == "qslmsg" || type == "stationpower" || type == 'stxstring' || type == 'rsts' || type == 'rstr') {
$('#editTextInput').show();
} else if (type == "region") {
$('#editRegion').show();
@@ -315,6 +319,8 @@ function changeEditType(type) {
$('#saveButton').prop("disabled", true);
} else if (type == "dok") {
$('#editDokInput').show();
} else if (type == "gridsquare") {
$('#editGridsquareInput').show();
} else if (type == "distance") {
$('#editDistanceInput').show();
$('#editDistanceInputLabel').show();