From 136cc2e3fff2276074de7e51cd2e5a66f4659ef1 Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Sat, 24 Dec 2022 18:18:28 +0100 Subject: [PATCH] Fix missing score and scan time Rspamd logs --- data/web/js/site/debug.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/data/web/js/site/debug.js b/data/web/js/site/debug.js index d15f6e1e..296886f9 100644 --- a/data/web/js/site/debug.js +++ b/data/web/js/site/debug.js @@ -765,7 +765,14 @@ jQuery(function($){ { title: 'Score', data: 'score', - defaultContent: '' + defaultContent: '', + createdCell: function(td, cellData) { + $(td).attr({ + "data-order": cellData.sortBy, + "data-sort": cellData.sortBy + }); + $(td).html(cellData.value); + } }, { title: 'Subject', @@ -786,7 +793,14 @@ jQuery(function($){ { title: 'Scan Time', data: 'scan_time', - defaultContent: '' + defaultContent: '', + createdCell: function(td, cellData) { + $(td).attr({ + "data-order": cellData.sortBy, + "data-sort": cellData.sortBy + }); + $(td).html(cellData.value); + } }, { title: 'ID', @@ -843,9 +857,7 @@ jQuery(function($){ scan_time += ' / ' + item.time_virtual.toFixed(3); } item.scan_time = { - "options": { - "sortValue": item.time_real - }, + "sortBy": item.time_real, "value": scan_time }; if (item.action === 'clean' || item.action === 'no action') { @@ -864,9 +876,7 @@ jQuery(function($){ score_content = "[ " + item.score.toFixed(2) + " / " + item.required_score + " ]"; } item.score = { - "options": { - "sortValue": item.score - }, + "sortBy": item.score, "value": score_content }; if (item.user == null) {