]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix pie chart displaying
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 14:47:58 +0000 (14:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 14:47:58 +0000 (14:47 +0000)
interface/js/rspamd.js

index fca33020d6d4e9c65d627afa6e9f17d06f310bd5..def4718ae3417cd08ce477e4e1abf5c27dcb8755 100644 (file)
                 });
                 sessionStorage.setItem("Credentials", JSON.stringify(to_Credentials));
                 displayStatWidgets();
+                getChart();
             },
             function (serv, jqXHR, textStatus, errorThrown) {
                 alertMessage('alert-error', 'Cannot receive stats data from: ' +
                 }, {
                     "color" : "#cc9966",
                     "label" : "Temporary rejected",
-                    "data" : data.learned,
-                    "value" : data.learned
+                    "data" : data.soft_reject,
+                    "value" : data.soft_reject
                 }, {
                     "color" : "#FFD700",
                     "label" : "Probable spam",
                 }, {
                     "color" : "#FF0000",
                     "label" : "Rejected",
-                    "data" : data.rejected,
-                    "value" : data.rejected
+                    "data" : data.reject,
+                    "value" : data.reject
                 } ];
                 pie = drawPie(pie, "chart", new_data);
             }