diff --git a/assets/js/sections/logbookadvanced.js b/assets/js/sections/logbookadvanced.js index e80c50cf5..9d958301a 100644 --- a/assets/js/sections/logbookadvanced.js +++ b/assets/js/sections/logbookadvanced.js @@ -164,6 +164,9 @@ function loadQSOTable(rows) { searching: false, responsive: false, ordering: true, + createdRow: function (row, data, dataIndex) { + $(row).attr('id',data.id); + }, "scrollY": window.innerHeight - $('#searchForm').innerHeight() - 250, "scrollCollapse": true, "paging": false, @@ -346,10 +349,10 @@ function loadQSOTable(rows) { if (user_options.stationpower.show == "true"){ data.push(qso.stationpower); } - + data.id='qsoID-' + qso.qsoID; let createdRow = table.row.add(data).index(); table.rows(createdRow).nodes().to$().data('qsoID', qso.qsoID); - table.row(createdRow).node().id = 'qsoID-' + qso.qsoID; + // table.row(createdRow).node().to$().attr("id", 'qsoID-' + qso.qsoID); } table.draw(); $('[data-bs-toggle="tooltip"]').tooltip();