summaryrefslogtreecommitdiffstats
path: root/interface/js/app/stats.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-30 12:15:21 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-30 12:15:21 +0300
commitb932d9baf7af265ba5dac574573fba6efb2ebde7 (patch)
treebe5e00bf9dd9d544f9a2cea8d8799246d2c5e772 /interface/js/app/stats.js
parentbc8a4c950f7731125edb2d6aa938a5b1dd7be329 (diff)
downloadrspamd-b932d9baf7af265ba5dac574573fba6efb2ebde7.tar.gz
rspamd-b932d9baf7af265ba5dac574573fba6efb2ebde7.zip
[Minor] Add "errorOnceId" parameter to query function
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r--interface/js/app/stats.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index 3bac82606..151616052 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -220,15 +220,8 @@ define(["jquery", "d3pie", "humanize"],
displayStatWidgets(checked_server);
graphs.chart = getChart(rspamd, graphs.chart, checked_server);
},
- error: function (serv, jqXHR, textStatus, errorThrown) {
- var alert_status = "alerted_stats_" + serv.name;
-
- if (!(alert_status in sessionStorage)) {
- sessionStorage.setItem(alert_status, true);
- rspamd.alertMessage("alert-error", "Cannot receive stats data from: " +
- serv.name + ", error: " + errorThrown);
- }
- },
+ errorMessage: "Cannot receive stats data",
+ errorOnceId: "alerted_stats_",
server: "All SERVERS"
});
},