diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-01 11:53:39 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-01 11:53:39 +0200 |
commit | 692a0de56d09031d96864fc71bdefb361be41a33 (patch) | |
tree | d09a75a5e1f6ff8f456cfdba61bbdf3104b8e879 /interface/js | |
parent | a4abbf887ed1516446e9b277350656b87babab67 (diff) | |
download | rspamd-692a0de56d09031d96864fc71bdefb361be41a33.tar.gz rspamd-692a0de56d09031d96864fc71bdefb361be41a33.zip |
[WebUI] Fix saving actions from web interface (#769)
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/rspamd.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index be73bf368..7c4284c57 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -908,7 +908,7 @@ html: '<div class="form-group">' + '<label class="control-label col-sm-2">' + label + '</label>' + '<div class="controls slider-controls col-sm-10">' + - '<input class="slider" type="slider" value="' + item.value + '">' + + '<input class="slider" type="slider" value="' + item.value + '" id="' + item.action + '">' + '</div>' + '</div>' }); @@ -937,9 +937,9 @@ var url = 'saveactions'; var values = []; // Rspamd order: [spam,probable_spam,greylist] - values[0] = parseFloat(inputs[2].value); - values[1] = parseFloat(inputs[1].value); - values[2] = parseFloat(inputs[0].value); + values[0] = parseFloat(document.getElementById('reject').value); + values[1] = parseFloat(document.getElementById('add header').value); + values[2] = parseFloat(document.getElementById('greylist').value); $.ajax({ data: JSON.stringify(values), dataType: 'json', |