aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorfiredranzer <rupeshharode@gmail.com>2018-03-05 23:13:50 +0530
committerfiredranzer <rupeshharode@gmail.com>2018-03-05 23:13:50 +0530
commite6ea42a49d070cdca88e175538b936bbfaba88d3 (patch)
treedb3d343dd5e1a95418d0a375856f6deec00cf0be /interface/js
parent8fdc57822563029b4013c9162057055182074346 (diff)
downloadrspamd-e6ea42a49d070cdca88e175538b936bbfaba88d3.tar.gz
rspamd-e6ea42a49d070cdca88e175538b936bbfaba88d3.zip
Add check for all thresholds
Diffstat (limited to 'interface/js')
-rw-r--r--interface/js/app/config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index c6d4a9b48..d591abd53 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -219,7 +219,7 @@ function($) {
var elts = loadActionsFromForm();
// String to array for comparison
var eltsArray = JSON.parse(loadActionsFromForm());
- if(eltsArray[2]>=0){
+ if(eltsArray[0]>=0 && eltsArray[1]>=0 && eltsArray[2]>=0){
rspamd.queryNeighbours('saveactions', null, null, "POST", {}, {
data: elts,
dataType: "json",
@@ -233,7 +233,7 @@ function($) {
var elts = loadActionsFromForm();
// String to array for comparison
var eltsArray = JSON.parse(loadActionsFromForm());
- if(eltsArray[2]>=0){
+ if(eltsArray[0]>=0 && eltsArray[1]>=0 && eltsArray[2]>=0){
rspamd.queryLocal('saveactions', null, null, "POST", {}, {
data: elts,
dataType: "json",