Skip to content

Commit

Permalink
Fix history labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 23, 2015
1 parent f393f5a commit a2b93dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/rspamd.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,13 @@
},
success: function (data) {
$.each(data, function (i, item) {
if (item.action === 'clean' || 'no action') {
if (item.action === 'clean' || item.action === 'no action') {
var action = 'label-success';
}
if (item.action === 'rewrite subject' || 'add header' || 'probable spam') {
if (item.action === 'rewrite subject' || item.action === 'add header' || item.action === 'probable spam') {
var action = 'label-warning';
}
if (item.action === 'spam') {
if (item.action === 'spam' || item.action === 'reject') {
var action = 'label-danger';
}
if (item.score <= item.required_score) {
Expand Down

0 comments on commit a2b93dd

Please sign in to comment.