From: Christian Moelders Date: Mon, 17 Dec 2018 10:58:33 +0000 (+0100) Subject: Closes: #2684 X-Git-Tag: 1.9.0~402^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2685%2Fhead;p=thirdparty%2Frspamd.git Closes: #2684 The successful upload of a text in the learning section is answered with HTTP status code 204, that is: The server has successfully processed the request and does not return any content. For this reason must be used. --- diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index f5a5cf73fb..466d5d25e6 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -52,7 +52,7 @@ define(["jquery"], headers: headers, success: function (json) { cleanTextUpload(source); - if (json[0].data.success) { + if (json[0].status === true) { rspamd.alertMessage("alert-success", "Data successfully uploaded"); } }