This commit is contained in:
jokob-sk
2025-08-21 15:15:45 +10:00
parent 915bb523d6
commit cbf2cd0ee8

View File

@@ -683,7 +683,9 @@ function initializeDatatable (status) {
return JSON.stringify(query); // Send the JSON request
},
"dataSrc": function (json) {
"dataSrc": function (res) {
json = res["data"];
// Set the total number of records for pagination
json.recordsTotal = json.devices.count || 0;
json.recordsFiltered = json.devices.count || 0;