[OQRS] Fixed js function that was used to add qsos to qslprint

这个提交包含在:
Andreas 2023-11-20 19:03:54 +01:00
父节点 fb23301014
当前提交 19f6418718

查看文件

@ -107,7 +107,7 @@ function notInLog() {
} }
}); });
} }
}); });
} }
function saveNotInLogRequest() { function saveNotInLogRequest() {
@ -136,7 +136,7 @@ function saveNotInLogRequest() {
$.ajax({ $.ajax({
url: base_url+'index.php/oqrs/save_not_in_log', url: base_url+'index.php/oqrs/save_not_in_log',
type: 'post', type: 'post',
data: { 'station_id': station_id, data: { 'station_id': station_id,
'callsign': $("#oqrssearch").val().toUpperCase(), 'callsign': $("#oqrssearch").val().toUpperCase(),
'email': $("#emailInput").val(), 'email': $("#emailInput").val(),
'message': $("#messageInput").val(), 'message': $("#messageInput").val(),
@ -220,7 +220,7 @@ function requestOqrs() {
} }
}); });
} }
}); });
} }
function submitOqrsRequest() { function submitOqrsRequest() {
@ -393,10 +393,10 @@ function loadOqrsTable(rows) {
var table = $('.oqrstable').DataTable(); var table = $('.oqrstable').DataTable();
table.clear(); table.clear();
for (i = 0; i < rows.length; i++) { for (i = 0; i < rows.length; i++) {
let qso = rows[i]; let qso = rows[i];
var data = [ var data = [
'<div class="form-check"><input class="form-check-input" type="checkbox" /></div>', '<div class="form-check"><input class="form-check-input" type="checkbox" /></div>',
qso.requesttime, qso.requesttime,
@ -412,7 +412,7 @@ function loadOqrsTable(rows) {
echo_searchlog_button(qso.requestcallsign, qso.id), echo_searchlog_button(qso.requestcallsign, qso.id),
echo_status(qso.status), echo_status(qso.status),
]; ];
let createdRow = table.row.add(data).index(); let createdRow = table.row.add(data).index();
table.rows(createdRow).nodes().to$().data('oqrsID', qso.id); table.rows(createdRow).nodes().to$().data('oqrsID', qso.id);
table.row(createdRow).node().id = 'oqrsID_' + qso.id; table.row(createdRow).node().id = 'oqrsID_' + qso.id;
@ -598,3 +598,13 @@ function unselectQsoID(qsoID) {
$('#checkBoxAll').prop("checked", false); $('#checkBoxAll').prop("checked", false);
} }
function addQsoToPrintQueue(id) {
$.ajax({
url: base_url + 'index.php/qslprint/add_qso_to_print_queue',
type: 'post',
data: {'id': id},
success: function(html) {
$("#qsolist_"+id).remove();''
}
});
}