aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-05 09:03:17 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-05 09:03:17 +0200
commit6d78b5329915411e47724f67c6830cca8f6aca33 (patch)
treec715225df43be07e9960b20265fcebe783c4599e /interface
parent68d3c2f3f31e24816f55d0c7e3838e199da1a9e0 (diff)
downloadrspamd-6d78b5329915411e47724f67c6830cca8f6aca33.tar.gz
rspamd-6d78b5329915411e47724f67c6830cca8f6aca33.zip
Revert "[WebUI] Fix saving actions from web interface (#769)"
This reverts commit 692a0de56d09031d96864fc71bdefb361be41a33.
Diffstat (limited to 'interface')
-rw-r--r--interface/js/rspamd.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js
index 6cfca7373..129afcc54 100644
--- a/interface/js/rspamd.js
+++ b/interface/js/rspamd.js
@@ -916,7 +916,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 + '" id="' + item.action + '">' +
+ '<input class="slider" type="slider" value="' + item.value + '">' +
'</div>' +
'</div>'
});
@@ -945,9 +945,9 @@
var url = 'saveactions';
var values = [];
// Rspamd order: [spam,probable_spam,greylist]
- values[0] = parseFloat(document.getElementById('reject').value);
- values[1] = parseFloat(document.getElementById('add header').value);
- values[2] = parseFloat(document.getElementById('greylist').value);
+ values[0] = parseFloat(inputs[2].value);
+ values[1] = parseFloat(inputs[1].value);
+ values[2] = parseFloat(inputs[0].value);
$.ajax({
data: JSON.stringify(values),
dataType: 'json',