diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-24 14:05:55 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-24 20:45:22 +0300 |
commit | 6d95ea817c68b5fd507ec85b63ce1d7f8b4295e5 (patch) | |
tree | 27c7018b1e9f6bc3800668769ec2dbdd1e2612f8 /interface/js/app/rspamd.js | |
parent | 396ad52afb3b2c49fc98ab12240d400cbc10a390 (diff) | |
download | rspamd-6d95ea817c68b5fd507ec85b63ce1d7f8b4295e5.tar.gz rspamd-6d95ea817c68b5fd507ec85b63ce1d7f8b4295e5.zip |
[WebUI] Fix query URL for selected server
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r-- | interface/js/app/rspamd.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 7db62cfd6..3649deda2 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -327,7 +327,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, }); } }, - url: req_url, + url: neighbours[checked_server].url + req_url, success: function (data) { if (on_success) { on_success(data); @@ -337,7 +337,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, }, error: function (jqXHR, textStatus, errorThrown) { if (on_error) { - on_error("local", jqXHR, textStatus, errorThrown); + on_error(checked_server, jqXHR, textStatus, errorThrown); } else { alertMessage("alert-error", "Cannot receive data: " + errorThrown); } |