// Autoranging
var scaleFactor = 1;
var unit = "msg/s";
- const yMax = d3.max(d3.merge(data), function (d) { return d.y; });
+ var yMax = d3.max(d3.merge(data), function (d) { return d.y; });
if (yMax < 1) {
scaleFactor = 60;
unit = "msg/min";
function process_history_v2(data) {
// Display no more than rcpt_lim recipients
- const rcpt_lim = 3;
+ var rcpt_lim = 3;
var items = [];
function getSelector(id) {
$.each(data.rows,
function (i, item) {
function more(p) {
- const l = item[p].length;
+ var l = item[p].length;
return (l > rcpt_lim) ? " … (" + l + ")" : "";
}
function format_rcpt(smtp, mime) {
if (checked_server === "All SERVERS") {
rspamd.queryNeighbours("history", function (req_data) {
function differentVersions() {
- const dv = neighbours_data.some(function (e) {
+ var dv = neighbours_data.some(function (e) {
return e.version !== neighbours_data[0].version;
});
if (dv) {
}
function alertMessage(alertClass, alertText) {
- const a = $('<div class="alert ' + alertClass + ' alert-dismissible fade in show">' +
+ var a = $('<div class="alert ' + alertClass + ' alert-dismissible fade in show">' +
'<button type="button" class="close" data-dismiss="alert" title="Dismiss">×</button>' +
'<strong>' + alertText + '</strong>');
$('.notification-area').append(a);