mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-12 16:14:45 +08:00
change sorting of rspamd symbols in quarantine
This commit is contained in:
parent
5f777a1b25
commit
d2d520336b
@ -98,6 +98,12 @@ jQuery(function($){
|
||||
data.symbols.sort(function (a, b) {
|
||||
if (a.score === 0) return 1
|
||||
if (b.score === 0) return -1
|
||||
if (b.score < 0 && a.score < 0) {
|
||||
return a.score - b.score
|
||||
}
|
||||
if (b.score > 0 && a.score > 0) {
|
||||
return b.score - a.score
|
||||
}
|
||||
return b.score - a.score
|
||||
})
|
||||
$.each(data.symbols, function (index, value) {
|
||||
|
Loading…
Reference in New Issue
Block a user