From: Vsevolod Stakhov Date: Sat, 14 Jan 2017 12:11:37 +0000 (+0000) Subject: [WebUI] Fix soft reject in pie chart X-Git-Tag: 1.5.0~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=716102f68ffd68c60212eeeaf6f2a6b9601bdd57;p=thirdparty%2Frspamd.git [WebUI] Fix soft reject in pie chart --- diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index def4718ae3..cef69604f1 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -476,6 +476,7 @@ probable: 0, greylist: 0, reject: 0, + soft_reject: 0, scanned: 0, learned: 0, read_only: neighbours_status[0].data.read_only, @@ -488,6 +489,7 @@ neighbours_sum.probable += neighbours_status[e].data.probable; neighbours_sum.greylist += neighbours_status[e].data.greylist; neighbours_sum.reject += neighbours_status[e].data.reject; + neighbours_sum.soft_reject += neighbours_status[e].data.soft_reject; neighbours_sum.scanned += neighbours_status[e].data.scanned; neighbours_sum.learned += neighbours_status[e].data.learned; neighbours_sum.uptime += neighbours_status[e].data.uptime; @@ -546,22 +548,6 @@ $('#modalBody form').hide(); }); -// function getChart() { -// $.ajax({ -// dataType: 'json', -// type: 'GET', -// url: 'pie', -// jsonp: false, -// beforeSend: function (xhr) { -// xhr.setRequestHeader('Password', getPassword()); -// }, -// success: function (data) { -// console.log(data); -// pie = drawPie(pie, "chart", data); -// } -// }); -// } - function getChart() { var creds = JSON.parse(sessionStorage.getItem('Credentials')); if (creds && creds[checked_server]) {