aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.json1
-rw-r--r--interface/js/app/config.js1
-rw-r--r--interface/js/app/graph.js2
-rw-r--r--interface/js/app/history.js5
-rw-r--r--interface/js/app/symbols.js6
5 files changed, 6 insertions, 9 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 4231abb4b..c5f2bc59c 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -80,7 +80,6 @@
"no-undef": "off",
"no-undefined": "off",
"no-underscore-dangle": "off",
- "no-unused-vars": "off",
"no-use-before-define": "off",
"one-var-declaration-per-line": "off",
"prefer-spread": "off",
diff --git a/interface/js/app/config.js b/interface/js/app/config.js
index 4f910ae8e..fe9d27a16 100644
--- a/interface/js/app/config.js
+++ b/interface/js/app/config.js
@@ -57,7 +57,6 @@ define(["jquery"],
// @get maps id
function getMaps(rspamd) {
- var items = [];
var $listmaps = $("#listMaps");
$listmaps.closest(".widget-box").hide();
$.ajax({
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js
index 9418c7cfb..de90c4a73 100644
--- a/interface/js/app/graph.js
+++ b/interface/js/app/graph.js
@@ -24,7 +24,7 @@
*/
define(["jquery", "d3evolution", "footable"],
- function ($, D3Evolution, unused) {
+ function ($, D3Evolution) {
var rrd_pie_config = {
header: {},
size: {
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index b6399894a..e89108185 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -683,7 +683,7 @@ define(["jquery", "footable", "humanize"],
ft.errors = undefined;
}
if (checked_server === "All SERVERS") {
- rspamd.queryNeighbours("errors", function (data) {
+ rspamd.queryNeighbours("errors", function () {
interface.getHistory(rspamd, tables, neighbours, checked_server);
interface.getErrors(rspamd, tables, neighbours, checked_server);
});
@@ -779,7 +779,6 @@ define(["jquery", "footable", "humanize"],
});
};
- interface.setup = function (rspamd, tables) {
- };
+ interface.setup = function () {};
return interface;
});
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index 8b8160913..358deb0e5 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -153,7 +153,7 @@ define(["jquery", "footable"],
return [items, distinct_groups];
}
// @get symbols into modal form
- interface.getSymbols = function (rspamd, tables, checked_server) {
+ interface.getSymbols = function (rspamd) {
$.ajax({
dataType: "json",
@@ -253,14 +253,14 @@ define(["jquery", "footable"],
rspamd.alertMessage("alert-modal alert-error", data.statusText);
}
});
- $(document).on("click", "#symbolsTable :button", function (event) {
+ $(document).on("click", "#symbolsTable :button", function () {
var value = $(this).data("save");
if (!value) return;
saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == "cluster");
});
};
- interface.setup = function (rspamd, tables) {
+ interface.setup = function (rspamd) {
$("#updateSymbols").on("click", function (e) {
e.preventDefault();
$.ajax({