"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",
// @get maps id
function getMaps(rspamd) {
- var items = [];
var $listmaps = $("#listMaps");
$listmaps.closest(".widget-box").hide();
$.ajax({
*/
define(["jquery", "d3evolution", "footable"],
- function ($, D3Evolution, unused) {
+ function ($, D3Evolution) {
var rrd_pie_config = {
header: {},
size: {
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);
});
});
};
- interface.setup = function (rspamd, tables) {
- };
+ interface.setup = function () {};
return interface;
});
return [items, distinct_groups];
}
// @get symbols into modal form
- interface.getSymbols = function (rspamd, tables, checked_server) {
+ interface.getSymbols = function (rspamd) {
$.ajax({
dataType: "json",
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({