From 19f64187188bad2a104410ff47f1259fc9e4a8c8 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 20 Nov 2023 19:03:54 +0100 Subject: [PATCH] [OQRS] Fixed js function that was used to add qsos to qslprint --- assets/js/sections/oqrs.js | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/assets/js/sections/oqrs.js b/assets/js/sections/oqrs.js index 72e26620..1a1f506e 100644 --- a/assets/js/sections/oqrs.js +++ b/assets/js/sections/oqrs.js @@ -107,7 +107,7 @@ function notInLog() { } }); } - }); + }); } function saveNotInLogRequest() { @@ -136,7 +136,7 @@ function saveNotInLogRequest() { $.ajax({ url: base_url+'index.php/oqrs/save_not_in_log', type: 'post', - data: { 'station_id': station_id, + data: { 'station_id': station_id, 'callsign': $("#oqrssearch").val().toUpperCase(), 'email': $("#emailInput").val(), 'message': $("#messageInput").val(), @@ -220,7 +220,7 @@ function requestOqrs() { } }); } - }); + }); } function submitOqrsRequest() { @@ -393,10 +393,10 @@ function loadOqrsTable(rows) { var table = $('.oqrstable').DataTable(); table.clear(); - + for (i = 0; i < rows.length; i++) { let qso = rows[i]; - + var data = [ '
', qso.requesttime, @@ -412,7 +412,7 @@ function loadOqrsTable(rows) { echo_searchlog_button(qso.requestcallsign, qso.id), echo_status(qso.status), ]; - + let createdRow = table.row.add(data).index(); table.rows(createdRow).nodes().to$().data('oqrsID', qso.id); table.row(createdRow).node().id = 'oqrsID_' + qso.id; @@ -598,3 +598,13 @@ function unselectQsoID(qsoID) { $('#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();'' + } + }); +}