aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-02 21:24:25 +0100
committerGitHub <noreply@github.com>2016-10-02 21:24:25 +0100
commit7ef036b635bc528eee42eebb201242e526822e95 (patch)
tree7c93e58bc30cb476a941744e1f385f937cdf925d
parent6ba87a5ffae69c64e734fd56a60f8ae45e33eb79 (diff)
parentb514cd569fbeb9b1c72f5ca0db2230b68e51c712 (diff)
downloadrspamd-7ef036b635bc528eee42eebb201242e526822e95.tar.gz
rspamd-7ef036b635bc528eee42eebb201242e526822e95.zip
Merge pull request #996 from rpv-tomsk/webui-fix
WebUI: Add missing parameter to error handlers
-rw-r--r--interface/js/rspamd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index 129afcc54..d4a1da70f 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -208,7 +208,7 @@
beforeSend: function (xhr) {
xhr.setRequestHeader('Password', getPassword());
},
- error: function () {
+ error: function (data) {
alertMessage('alert-modal alert-error', data.statusText);
},
success: function (data) {
@@ -959,7 +959,7 @@
success: function () {
alertMessage('alert-success', 'Actions successfully saved');
},
- error: function () {
+ error: function (data) {
alertMessage('alert-modal alert-error', data.statusText);
}
});