diff options
author | firedranzer <rupeshharode@gmail.com> | 2018-03-06 10:34:41 +0530 |
---|---|---|
committer | firedranzer <rupeshharode@gmail.com> | 2018-03-06 10:34:41 +0530 |
commit | ba9d6870d71b5d869e649b430b741f090195e4c8 (patch) | |
tree | 99f2ec0a1b74dcf01820b2e3d7518e4e95505097 /interface | |
parent | e6ea42a49d070cdca88e175538b936bbfaba88d3 (diff) | |
download | rspamd-ba9d6870d71b5d869e649b430b741f090195e4c8.tar.gz rspamd-ba9d6870d71b5d869e649b430b741f090195e4c8.zip |
alertmessage for each negative value
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/config.js | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index d591abd53..3af4005d0 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -226,7 +226,16 @@ function($) { }); } else{ - alert("Greylist can not be negative"); + if(eltsArray[0]<0){ + rspamd.alertMessage('alert-modal alert-error', 'spam can not be negative'); + } + else if(eltsArray[1]<0){ + rspamd.alertMessage('alert-modal alert-error', 'probable_spam can not be negative'); + } + else if(eltsArray[2]<0){ + rspamd.alertMessage('alert-modal alert-error', 'greylist can not be negative'); + } + } }); $('#saveActionsBtn').on('click', function() { @@ -240,7 +249,16 @@ function($) { }); } else{ - alert("Greylist can not be negative"); + if(eltsArray[0]<0){ + rspamd.alertMessage('alert-modal alert-error', 'spam can not be negative'); + } + else if(eltsArray[1]<0){ + rspamd.alertMessage('alert-modal alert-error', 'probable_spam can not be negative'); + } + else if(eltsArray[2]<0){ + rspamd.alertMessage('alert-modal alert-error', 'greylist can not be negative'); + } + } }); }, |