summaryrefslogtreecommitdiffstats
path: root/interface/js/app/rspamd.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-08-16 22:49:50 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-08-16 22:49:50 +0300
commit88354ed54216aed337324f460690ae45a81ef41b (patch)
tree75c5b3a801d7d3c482de6bfca78cdb93a2e0858e /interface/js/app/rspamd.js
parent0f5c83a3f6bc5e3f446bff337292b9a5e2703344 (diff)
downloadrspamd-88354ed54216aed337324f460690ae45a81ef41b.tar.gz
rspamd-88354ed54216aed337324f460690ae45a81ef41b.zip
[Minor] Refactor upload.js module to use query function
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r--interface/js/app/rspamd.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 031a86a86..300313159 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -234,7 +234,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
alertMessage("alert-error", "Request failed");
}
}
- }
+ },
+ statusCode: o.statusCode
};
if (o.method) {
req_params.method = o.method;
@@ -458,7 +459,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
// Force options to be an object
var o = options || {};
Object.keys(o).forEach(function (option) {
- if (["data", "error", "errorMessage", "errorOnceId", "headers", "method", "params", "server", "success"]
+ if (["data", "error", "errorMessage", "errorOnceId", "headers", "method", "params", "server", "statusCode",
+ "success"]
.indexOf(option) < 0) {
throw new Error("Unknown option: " + option);
}