aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Peters <andryyy@users.noreply.github.com>2017-05-03 13:05:50 +0200
committerGitHub <noreply@github.com>2017-05-03 13:05:50 +0200
commitc22319afc61e5d51ae0b4219619fea816ed6a0ea (patch)
tree3b73f316c026c3ad2c4a42090ef58298284e9636
parent2d9c862bad1428c369101510b4af1513b04ff0c2 (diff)
downloadrspamd-c22319afc61e5d51ae0b4219619fea816ed6a0ea.tar.gz
rspamd-c22319afc61e5d51ae0b4219619fea816ed6a0ea.zip
Fixes saving action scores in WebUI
Variable elts was not updated and always returned the previously set values.
-rw-r--r--interface/js/app/config.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index 7b8ec9710..a5ec6c341 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -215,15 +215,15 @@ function($) {
$('#actionsFormField').attr('disabled', true);
}
- var elts = loadActionsFromForm();
-
$('#saveActionsClusterBtn').on('click', function() {
+ var elts = loadActionsFromForm();
rspamd.queryNeighbours('saveactions', null, null, "POST", {}, {
data: elts,
dataType: "json",
});
});
$('#saveActionsBtn').on('click', function() {
+ var elts = loadActionsFromForm();
rspamd.queryLocal('saveactions', null, null, "POST", {}, {
data: elts,
dataType: "json",
@@ -287,4 +287,4 @@ function($) {
interface.getMaps = getMaps;
return interface;
-}); \ No newline at end of file
+});