Update selectors to use #qslprint_table for QSL print

Replaced all occurrences of the '.qslprint' class selector with the more specific '#qslprint_table' ID selector for table row and checkbox operations. This improves selector accuracy and ensures the correct table is targeted for QSL print actions.
这个提交包含在:
Peter Goodhall 2025-07-30 16:44:36 +01:00
父节点 cf94f3426f
当前提交 095bf32781

查看文件

@ -149,19 +149,19 @@ function mark_qsl_sent(id, method) {
$(document).on('change', '#checkBoxAll', function (event) { $(document).on('change', '#checkBoxAll', function (event) {
if (this.checked) { if (this.checked) {
$('.qslprint tbody tr').each(function (i) { $('#qslprint_table tbody tr').each(function (i) {
$(this).closest('tr').addClass('activeRow'); $(this).addClass('activeRow');
$(this).closest('tr').find("input[type=checkbox]").prop("checked", true); $(this).find("input[type=checkbox]").prop("checked", true);
}); });
} else { } else {
$('.qslprint tbody tr').each(function (i) { $('#qslprint_table tbody tr').each(function (i) {
$(this).closest('tr').removeClass('activeRow'); $(this).removeClass('activeRow');
$(this).closest('tr').find("input[type=checkbox]").prop("checked", false); $(this).find("input[type=checkbox]").prop("checked", false);
}); });
} }
}); });
$(document).on('click', '.qslprint input[type="checkbox"]', function() { $(document).on('click', '#qslprint_table input[type="checkbox"]', function() {
if ($(this).is(":checked")) { if ($(this).is(":checked")) {
$(this).closest('tr').addClass('activeRow'); $(this).closest('tr').addClass('activeRow');
} else { } else {
@ -170,7 +170,7 @@ $(document).on('click', '.qslprint input[type="checkbox"]', function() {
}); });
function markSelectedQsos() { function markSelectedQsos() {
var elements = $('.qslprint tbody input:checked'); var elements = $('#qslprint_table tbody input:checked');
var nElements = elements.length; var nElements = elements.length;
if (nElements == 0) { if (nElements == 0) {
return; return;
@ -202,7 +202,7 @@ function markSelectedQsos() {
} }
function removeSelectedQsos() { function removeSelectedQsos() {
var elements = $('.qslprint tbody input:checked'); var elements = $('#qslprint_table tbody input:checked');
var nElements = elements.length; var nElements = elements.length;
if (nElements == 0) { if (nElements == 0) {
return; return;