From: Alexander Moisseev Date: Sun, 22 Jul 2018 15:24:58 +0000 (+0300) Subject: [WebUI] Unify arguments of query functions X-Git-Tag: 1.7.9~62^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1881cb7ba2d4007721871aeb2e23b6d112012241;p=rspamd.git [WebUI] Unify arguments of query functions --- 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());