mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-12 04:23:24 +02:00
[Web] Handle score as string
This commit is contained in:
parent
584fb75f05
commit
45f31ba931
@ -17,7 +17,7 @@ jQuery(function($){
|
|||||||
{"name":"sender","title":lang.sender},
|
{"name":"sender","title":lang.sender},
|
||||||
{"name":"rcpt","title":lang.rcpt, "breakpoints":"xs sm md", "type": "text"},
|
{"name":"rcpt","title":lang.rcpt, "breakpoints":"xs sm md", "type": "text"},
|
||||||
{"name":"virus","title":lang.danger, "type": "text"},
|
{"name":"virus","title":lang.danger, "type": "text"},
|
||||||
{"name":"score","title": lang.spam_score,"type": "number"},
|
{"name":"score","title": lang.spam_score, "type": "text"},
|
||||||
{"name":"subject","title":lang.subj, "type": "text"},
|
{"name":"subject","title":lang.subj, "type": "text"},
|
||||||
{"name":"created","formatter":function unix_time_format(tm) { var date = new Date(tm ? tm * 1000 : 0); return date.toLocaleString();},"title":lang.received,"style":{"width":"170px"}},
|
{"name":"created","formatter":function unix_time_format(tm) { var date = new Date(tm ? tm * 1000 : 0); return date.toLocaleString();},"title":lang.received,"style":{"width":"170px"}},
|
||||||
{"name":"action","filterable": false,"sortable": false,"style":{"text-align":"right"},"style":{"width":"220px"},"type":"html","title":lang.action,"breakpoints":"xs sm md"}
|
{"name":"action","filterable": false,"sortable": false,"style":{"text-align":"right"},"style":{"width":"220px"},"type":"html","title":lang.action,"breakpoints":"xs sm md"}
|
||||||
@ -36,6 +36,9 @@ jQuery(function($){
|
|||||||
} else {
|
} else {
|
||||||
item.subject = escapeHtml(item.subject);
|
item.subject = escapeHtml(item.subject);
|
||||||
}
|
}
|
||||||
|
if (item.score === null) {
|
||||||
|
item.score = '-';
|
||||||
|
}
|
||||||
if (item.virus_flag > 0) {
|
if (item.virus_flag > 0) {
|
||||||
item.virus = '<span class="dot-danger"></span>';
|
item.virus = '<span class="dot-danger"></span>';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user