mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Separate gridsquare and make input shown in upper case
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user