From: Andrew Lewis Date: Mon, 1 Aug 2016 09:53:39 +0000 (+0200) Subject: [WebUI] Fix saving actions from web interface (#769) X-Git-Tag: 1.3.1~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F781%2Fhead;p=rspamd.git [WebUI] Fix saving actions from web interface (#769) --- 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: '
' + '' + '
' + - '' + + '' + '
' + '
' }); @@ -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',