aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-30 11:06:46 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-30 11:06:46 +0300
commitbc8a4c950f7731125edb2d6aa938a5b1dd7be329 (patch)
tree7c2cac835ae217ff3d352375d995617ff4e36233 /interface/js/app/history.js
parenta072aa6fb1b0c12303e4492b0a9cb350d45ff5cb (diff)
downloadrspamd-bc8a4c950f7731125edb2d6aa938a5b1dd7be329.tar.gz
rspamd-bc8a4c950f7731125edb2d6aa938a5b1dd7be329.zip
[Minor] Add "errorMessage" parameter to query function
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r--interface/js/app/history.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 19bd30623..2807bac41 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -704,11 +704,7 @@ define(["jquery", "footable", "humanize"],
ui.getHistory(rspamd, tables, neighbours, checked_server);
ui.getErrors(rspamd, tables, neighbours, checked_server);
},
- error: function (serv, jqXHR, textStatus, errorThrown) {
- var serv_name = (typeof serv === "string") ? serv : serv.name;
- rspamd.alertMessage("alert-error",
- "Cannot reset history log on " + serv_name + ": " + errorThrown);
- }
+ errorMessage: "Cannot reset history log"
});
});
};
@@ -757,12 +753,10 @@ define(["jquery", "footable", "humanize"],
beforeSend: function (xhr) {
xhr.setRequestHeader("Password", rspamd.getPassword());
},
- error: function () {
- rspamd.alertMessage("alert-error", "Cannot receive errors");
- },
success: function (data) {
drawErrorsTable(data);
- }
+ },
+ errorMessage: "Cannot receive errors"
});
} else {
rspamd.query("errors", {