diff options
author | moisseev <moiseev@mezonplus.ru> | 2024-01-02 10:10:44 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2024-01-02 10:10:44 +0300 |
commit | f44458b19aae42fd58e6faca3af15b1b9b7d3833 (patch) | |
tree | 4501cad99fa98b1f6e89b64dd0ba404fa0738a86 /interface/js/app/upload.js | |
parent | ecd96adf48982e99e3144fa0fdf74b83661fa544 (diff) | |
download | rspamd-f44458b19aae42fd58e6faca3af15b1b9b7d3833.tar.gz rspamd-f44458b19aae42fd58e6faca3af15b1b9b7d3833.zip |
[Minor] Move server selection logic to common.js
Diffstat (limited to 'interface/js/app/upload.js')
-rw-r--r-- | interface/js/app/upload.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 546f5cc84..1cde1d470 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -73,11 +73,6 @@ define(["jquery", "app/common", "app/libft"], }); } - function get_server() { - const checked_server = common.getSelector("selSrv"); - return (checked_server === "All SERVERS") ? "local" : checked_server; - } - // @upload text function scanText(data, headers) { common.query("checkv2", { @@ -136,7 +131,7 @@ define(["jquery", "app/common", "app/libft"], common.alertMessage("alert-error", "Cannot tokenize message: no text data"); } }, - server: get_server() + server: common.getServer() }); } @@ -168,7 +163,7 @@ define(["jquery", "app/common", "app/libft"], common.alertMessage("alert-error", "Unexpected error processing message"); } }, - server: get_server() + server: common.getServer() }); } |