Fixed id fetching on qsl slideshow

This commit is contained in:
Andreas Kristiansen
2025-06-10 20:22:39 +02:00
parent cf13e83492
commit 33f4e5cbea

View File

@@ -912,9 +912,9 @@ $(document).ready(function () {
});
$('#qslSlideshow').click(function (event) {
var elements = $('#qsoList tbody input:checked');
var nElements = elements.length;
if (nElements == 0) {
const id_list = getSelectedIds();
if (id_list.length === 0) {
BootstrapDialog.alert({
title: 'INFO',
message: 'You need to select a least 1 row to display a QSL card!',
@@ -927,7 +927,7 @@ $(document).ready(function () {
return;
}
$('#qslSlideshow').prop("disabled", true);
const id_list = getSelectedIds();
$.ajax({
url: base_url + 'index.php/logbookadvanced/qslSlideshow',
type: 'post',