diff options
author | firedranzer <rupeshharode@gmail.com> | 2018-03-05 23:13:50 +0530 |
---|---|---|
committer | firedranzer <rupeshharode@gmail.com> | 2018-03-05 23:13:50 +0530 |
commit | e6ea42a49d070cdca88e175538b936bbfaba88d3 (patch) | |
tree | db3d343dd5e1a95418d0a375856f6deec00cf0be /interface/js | |
parent | 8fdc57822563029b4013c9162057055182074346 (diff) | |
download | rspamd-e6ea42a49d070cdca88e175538b936bbfaba88d3.tar.gz rspamd-e6ea42a49d070cdca88e175538b936bbfaba88d3.zip |
Add check for all thresholds
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/app/config.js | 4 |
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", |