]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix query URL for selected server
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 24 Jul 2018 11:05:55 +0000 (14:05 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 24 Jul 2018 17:45:22 +0000 (20:45 +0300)
interface/js/app/rspamd.js

index 7db62cfd6f0b2ebec4f7e51e80ef326b78a635da..3649deda2c7ba3f49d99f188443565bd867a80ee 100644 (file)
@@ -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);
                 }