mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Advanced Logbook] Unselected row only after update, realign columns
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user