From 1881cb7ba2d4007721871aeb2e23b6d112012241 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 22 Jul 2018 18:24:58 +0300 Subject: [PATCH] [WebUI] Unify arguments of query functions --- interface/js/app/rspamd.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 2d82a99c7..7db62cfd6 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -313,10 +313,11 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, }); }; - ui.queryLocal = function (req_url, on_success, on_error, method, headers, params) { + ui.queryLocal = function (req_url, on_success, on_error, method, headers, params, req_data) { var req_params = { type: method, jsonp: false, + data: req_data, beforeSend: function (xhr) { xhr.setRequestHeader("Password", getPassword()); -- 2.39.5