From: Alexander Moisseev Date: Wed, 4 Jul 2018 10:16:24 +0000 (+0300) Subject: [Minor] JS: Add spaces at comments start X-Git-Tag: 1.7.8~44^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2323%2Fhead;p=rspamd.git [Minor] JS: Add spaces at comments start --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 1a6eaa2a2..03a0713b1 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -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; }) diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index e83de0433..5e5932e8a 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -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) { diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 8a5457a6f..5a3185a0c 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -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 {