]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Display symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Mar 2017 19:01:44 +0000 (19:01 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Mar 2017 19:01:44 +0000 (19:01 +0000)
interface/js/app/history.js

index 3ffb01e20cde5a2adf217313644ac29c4c9fa88c..a1941411439ee3fefbf700058d83b49b364ebaef 100644 (file)
@@ -58,7 +58,7 @@ function($) {
                 score = 'label-danger';
             }
 
-            console.log(item)
+            var symbols = Object.keys(item.symbols);
             var nitem = [];
             nitem.push('<tr><td data-order="' +
                 item.unix_time + '">' +
@@ -77,9 +77,9 @@ function($) {
                     '"><span class="label ' + score + '">'
                     + item.score.toFixed(2) + ' / ' +
                     item.required_score.toFixed(2) + '</span></td>');
-            nitem.push( '<td data-order="' + item.symbols +
+            nitem.push( '<td data-order="' + symbols +
                     '"><div class="cell-overflow" tabindex="1" title="' +
-                    item.symbols + '">' + item.symbols + '</div></td>');
+                    symbols + '">' + symbols + '</div></td>');
             nitem.push('<td data-order="' + item.size + '">' +
                     item.size + '</td>');
             nitem.push('<td data-order="' + item.time_real + '">' +