"no-loop-func": "off",
"no-negated-condition": "off",
"no-underscore-dangle": "off",
- "no-use-before-define": "off",
"one-var-declaration-per-line": "off",
"prefer-spread": "off",
"sort-keys": "off",
if (checked_server === "All SERVERS") {
rspamd.queryNeighbours("history", function (req_data) {
- function differentVersions() {
+ function differentVersions(neighbours_data) {
var dv = neighbours_data.some(function (e) {
return e.version !== neighbours_data[0].version;
});
var neighbours_data = req_data
.filter(function (d) { return d.status; }) // filter out unavailable neighbours
.map(function (d) { return d.data; });
- if (neighbours_data.length && !differentVersions()) {
+ if (neighbours_data.length && !differentVersions(neighbours_data)) {
var data = {};
if (neighbours_data[0].version) {
data.rows = [].concat.apply([], neighbours_data
var timer_id = [];
var selData; // Graph's dataset selector state
+ function cleanCredentials() {
+ sessionStorage.clear();
+ $("#statWidgets").empty();
+ $("#listMaps").empty();
+ $("#modalBody").empty();
+ $("#historyLog tbody").remove();
+ $("#errorsLog tbody").remove();
+ $("#symbolsTable tbody").remove();
+ }
+
function stopTimers() {
for (var key in timer_id) {
Visibility.stop(timer_id[key]);
sessionStorage.setItem("Password", password);
}
- // @clean credentials
- function cleanCredentials() {
- sessionStorage.clear();
- $("#statWidgets").empty();
- $("#listMaps").empty();
- $("#modalBody").empty();
- $("#historyLog tbody").remove();
- $("#errorsLog tbody").remove();
- $("#symbolsTable tbody").remove();
- }
-
function isLogged() {
if (sessionStorage.getItem("Credentials") !== null) {
return true;