diff options
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/app/upload.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index a484a41aa..d85196296 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -42,8 +42,10 @@ define(["jquery", "app/common", "app/libft"], url = "learnspam"; } else if (source === "ham") { url = "learnham"; - } else if (source === "fuzzy") { + } else if (source === "fuzzyadd") { url = "fuzzyadd"; + } else if (source === "fuzzydel") { + url = "fuzzydel"; } else if (source === "scan") { url = "checkv2"; } @@ -245,11 +247,15 @@ define(["jquery", "app/common", "app/libft"], getFuzzyHashes(data); } else { let headers = {}; - if (source === "fuzzy") { + if (source === "fuzzyadd") { headers = { flag: $("#fuzzyFlagText").val(), weight: $("#fuzzyWeightText").val() }; + } else if (source === "fuzzydel") { + headers = { + flag: $("#fuzzyFlagText").val(), + }; } uploadText(data, source, headers); } |