From cb1a11e5514abfe2637f304b0a21f30e1a0afee7 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Mon, 10 Jul 2023 09:35:51 +0200 Subject: [PATCH] [Web] fix rspamd-history --- data/web/js/site/debug.js | 2 +- data/web/templates/debug.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js index 20def23fa..10b1e8cf3 100644 --- a/data/web/js/site/debug.js +++ b/data/web/js/site/debug.js @@ -1173,7 +1173,7 @@ jQuery(function($){ if (table = $('#' + log_table).DataTable()) { var heading = $('#' + log_table).closest('.card').find('.card-header'); - var load_rows = (table.data().length + 1) + '-' + (table.data().length + new_nrows) + var load_rows = (table.data().count() + 1) + '-' + (table.data().count() + new_nrows) $.get('/api/v1/get/logs/' + log_url + '/' + load_rows).then(function(data){ if (data.length === undefined) { mailcow_alert_box(lang.no_new_rows, "info"); return; } diff --git a/data/web/templates/debug.twig b/data/web/templates/debug.twig index adc19b267..8f2f86a74 100644 --- a/data/web/templates/debug.twig +++ b/data/web/templates/debug.twig @@ -497,8 +497,8 @@ {{ lang.debug.history_all_servers }}
{{ lang.mailbox.quick_actions }}