aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/upload.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-15 17:26:12 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-15 17:26:12 +0300
commitab72e301244e22f10463bfbf744ad95da4f7e9f9 (patch)
treebd3c6fee12eb8d3237a25dc00e04827d7d9733bf /interface/js/app/upload.js
parent5771b12d4e02543a2b3e96e095dbcf20f10e7588 (diff)
downloadrspamd-ab72e301244e22f10463bfbf744ad95da4f7e9f9.tar.gz
rspamd-ab72e301244e22f10463bfbf744ad95da4f7e9f9.zip
[Minor] Use consistent brace style for blocks (1tbs)
Diffstat (limited to 'interface/js/app/upload.js')
-rw-r--r--interface/js/app/upload.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js
index 3fcfc3aad..064cadc56 100644
--- a/interface/js/app/upload.js
+++ b/interface/js/app/upload.js
@@ -96,19 +96,16 @@ define(["jquery"],
if (json.action === "clean" || "no action") {
action = "label-success";
- }
- else if (json.action === "rewrite subject" || "add header" || "probable spam") {
+ } else if (json.action === "rewrite subject" || "add header" || "probable spam") {
action = "label-warning";
- }
- else if (json.action === "spam") {
+ } else if (json.action === "spam") {
action = "label-danger";
}
var score = "";
if (json.score <= json.required_score) {
score = "label-success";
- }
- else if (json.score >= json.required_score) {
+ } else if (json.score >= json.required_score) {
score = "label-danger";
}
$("<tbody id=\"tmpBody\"><tr>" +