diff options
author | André Peters <andryyy@users.noreply.github.com> | 2017-05-03 13:05:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-03 13:05:50 +0200 |
commit | c22319afc61e5d51ae0b4219619fea816ed6a0ea (patch) | |
tree | 3b73f316c026c3ad2c4a42090ef58298284e9636 /interface | |
parent | 2d9c862bad1428c369101510b4af1513b04ff0c2 (diff) | |
download | rspamd-c22319afc61e5d51ae0b4219619fea816ed6a0ea.tar.gz rspamd-c22319afc61e5d51ae0b4219619fea816ed6a0ea.zip |
Fixes saving action scores in WebUI
Variable elts was not updated and always returned the previously set values.
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/config.js | 6 |
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 +}); |