]> source.dussan.org Git - rspamd.git/commitdiff
Don't mark "neutral" symbol weights as negative 2266/head
authorMarcel Menzel <mail@mcl.gg>
Fri, 25 May 2018 13:41:47 +0000 (15:41 +0200)
committerGitHub <noreply@github.com>
Fri, 25 May 2018 13:41:47 +0000 (15:41 +0200)
interface/js/app/symbols.js

index b1745abf0c04f7b3f29c0961a0f04a2ec6426aab..cc38cacfc1e9ef9e1916ee9379d2161c1f05288c 100644 (file)
@@ -97,7 +97,7 @@ function($) {
                 var label_class = '';
                 if (item.weight < 0) {
                     label_class = 'scorebar-ham';
-                } else {
+                } else if (item.weight > 0) {
                     label_class = 'scorebar-spam';
                 }
                 item.weight = '<input class="form-control input-sm mb-disabled ' + label_class +