public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
Fix missing score and scan time Rspamd logs
136cc2e3
data/web/js/site/debug.js | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
Diff
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 = "[ <span class='text-danger'>" + item.score.toFixed(2) + " / " + item.required_score + "</span> ]";
}
item.score = {
- "options": {
- "sortValue": item.score
- },
+ "sortBy": item.score,
"value": score_content
};
if (item.user == null) {