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.
这个提交包含在:
父节点
cf94f3426f
当前提交
095bf32781
共有 1 个文件被更改,包括 9 次插入 和 9 次删除
|
|
@ -149,19 +149,19 @@ function mark_qsl_sent(id, method) {
|
|||
|
||||
$(document).on('change', '#checkBoxAll', function (event) {
|
||||
if (this.checked) {
|
||||
$('.qslprint tbody tr').each(function (i) {
|
||||
$(this).closest('tr').addClass('activeRow');
|
||||
$(this).closest('tr').find("input[type=checkbox]").prop("checked", true);
|
||||
$('#qslprint_table tbody tr').each(function (i) {
|
||||
$(this).addClass('activeRow');
|
||||
$(this).find("input[type=checkbox]").prop("checked", true);
|
||||
});
|
||||
} else {
|
||||
$('.qslprint tbody tr').each(function (i) {
|
||||
$(this).closest('tr').removeClass('activeRow');
|
||||
$(this).closest('tr').find("input[type=checkbox]").prop("checked", false);
|
||||
$('#qslprint_table tbody tr').each(function (i) {
|
||||
$(this).removeClass('activeRow');
|
||||
$(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")) {
|
||||
$(this).closest('tr').addClass('activeRow');
|
||||
} else {
|
||||
|
|
@ -170,7 +170,7 @@ $(document).on('click', '.qslprint input[type="checkbox"]', function() {
|
|||
});
|
||||
|
||||
function markSelectedQsos() {
|
||||
var elements = $('.qslprint tbody input:checked');
|
||||
var elements = $('#qslprint_table tbody input:checked');
|
||||
var nElements = elements.length;
|
||||
if (nElements == 0) {
|
||||
return;
|
||||
|
|
@ -202,7 +202,7 @@ function markSelectedQsos() {
|
|||
}
|
||||
|
||||
function removeSelectedQsos() {
|
||||
var elements = $('.qslprint tbody input:checked');
|
||||
var elements = $('#qslprint_table tbody input:checked');
|
||||
var nElements = elements.length;
|
||||
if (nElements == 0) {
|
||||
return;
|
||||
|
|
|
|||
正在加载…
在新工单中引用