Ver código fonte

[Minor] JS: Add spaces at comments start

tags/1.7.8
Alexander Moisseev 6 anos atrás
pai
commit
8a63c6b787

+ 5
- 5
interface/js/app/rspamd.js Ver arquivo

@@ -29,7 +29,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
// begin
var graphs = {};
var tables = {};
var neighbours = []; //list of clusters
var neighbours = []; // list of clusters
var checked_server = "All SERVERS";
var interface = {
read_only: false,
@@ -405,9 +405,9 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
neighbours_status[ind].checked = true;

if (jQuery.isEmptyObject(data)) {
neighbours_status[ind].status = false; //serv does not work
neighbours_status[ind].status = false; // serv does not work
} else {
neighbours_status[ind].status = true; //serv does not work
neighbours_status[ind].status = true; // serv does not work
neighbours_status[ind].data = data;
}
if (neighbours_status.every(function (elt) { return elt.checked; })) {
@@ -440,7 +440,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
}
}
}
//error display
// error display
};
if (params) {
$.each(params, function(k, v) {
@@ -492,7 +492,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
"pieOuterRadius": "85%"
},
"data": {
//"sortOrder": "value-desc",
// "sortOrder": "value-desc",
"content": data.filter(function (elt) {
return elt.value > 0;
})

+ 2
- 2
interface/js/app/stats.js Ver arquivo

@@ -27,8 +27,8 @@ define(["jquery", "d3pie", "humanize"],
// @ ms to date
function msToTime(seconds) {
years = seconds / 31536000 >> 0; // 3600*24*365
months = seconds % 31536000 / 2628000 >> 0; //3600*24*365/12
days = seconds % 31536000 % 2628000 / 86400 >> 0; //24*3600
months = seconds % 31536000 / 2628000 >> 0; // 3600*24*365/12
days = seconds % 31536000 % 2628000 / 86400 >> 0; // 24*3600
hours = seconds % 31536000 % 2628000 % 86400 / 3600 >> 0;
minutes = seconds % 31536000 % 2628000 % 86400 % 3600 / 60 >> 0;
if (years > 0) {

+ 1
- 1
interface/js/app/upload.js Ver arquivo

@@ -192,7 +192,7 @@ define(["jquery"],
var headers = {};
data = $("#" + source + "TextSource").val();
if (source == "fuzzy") {
//To access the proper
// To access the proper
headers.flag = $("#fuzzyFlagText").val();
headers.weight = $("#fuzzyWeightText").val();
} else {

Carregando…
Cancelar
Salvar