From: Pavel Rochnyack Date: Sun, 2 Oct 2016 16:00:23 +0000 (+0600) Subject: WebUI: Add missing parameter to error handlers X-Git-Tag: 1.4.0~336^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F996%2Fhead;p=thirdparty%2Frspamd.git WebUI: Add missing parameter to error handlers --- diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index 129afcc54d..d4a1da70f5 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); } });