Merge pull request #2146 from AndreasK79/lba_callbook_js_tweaks

[Advanced Logbook] Unselected row only after update, realign columns
This commit is contained in:
Andreas Kristiansen
2025-07-13 19:45:32 +02:00
committed by GitHub

View File

@@ -409,23 +409,26 @@ function processNextCallbookItem() {
if (nElements == 0) {
inCallbookProcessing = false;
callBookProcessingDialog.close();
let table = $('#qsoList').DataTable();
table.draw(false);
return;
}
callBookProcessingDialog.setMessage("Retrieving callbook data : " + nElements + " remaining");
let id = elements.first().closest('tr').attr('id')?.replace(/\D/g, ''); // Removes non-numeric characters
unselectQsoID(elements.first().closest('tr').attr('id')?.replace(/\D/g, '')); // Removes non-numeric characters
callBookProcessingDialog.setMessage("Retrieving callbook data : " + nElements + " remaining");
$.ajax({
url: site_url + '/logbookadvanced/updateFromCallbook',
type: 'post',
data: {
qsoID: elements.first().closest('tr').attr('id')?.replace(/\D/g, '')
qsoID: id
},
dataType: 'json',
success: function (data) {
if (data != []) {
updateRow(data);
unselectQsoID(id);
}
setTimeout("processNextCallbookItem()", 50);
},