aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-08-12 19:16:25 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-08-12 19:16:25 +0300
commit120f74b8406402e4a108e2c938bf9f6a4cb9be3a (patch)
tree3aba5d6a15323296c0c45ec334f4cabcd4ef8416 /interface
parent266911fd7a296715ed6eb24c03e9194b521823ae (diff)
downloadrspamd-120f74b8406402e4a108e2c938bf9f6a4cb9be3a.tar.gz
rspamd-120f74b8406402e4a108e2c938bf9f6a4cb9be3a.zip
[WebUI] Fix maps loading from neighbours
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/config.js7
-rw-r--r--interface/js/app/rspamd.js2
2 files changed, 7 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index 1e0aa2829..2f87525fa 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -166,9 +166,14 @@ define(["jquery"],
};
// @upload edited actions
- ui.setup = function (rspamd, checked_server) {
+ ui.setup = function (rspamd) {
// Modal form for maps
$(document).on("click", "[data-toggle=\"modal\"]", function () {
+ function getSelector(id) {
+ var e = document.getElementById(id);
+ return e.options[e.selectedIndex].value;
+ }
+ var checked_server = getSelector("selSrv");
var item = $(this).data("item");
rspamd.query("getmap", {
headers: {
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index e983e4074..70f6fbfd5 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -286,7 +286,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
tabClick("#status_nav");
}
});
- tab_config.setup(ui, checked_server);
+ tab_config.setup(ui);
tab_symbols.setup(ui);
tab_upload.setup(ui);
selData = tab_graph.setup();