]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Add spaces at comments start 2323/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 10:16:24 +0000 (13:16 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 10:16:24 +0000 (13:16 +0300)
interface/js/app/rspamd.js
interface/js/app/stats.js
interface/js/app/upload.js

index 1a6eaa2a2c76644b1939559b572960ea593c773e..03a0713b1e7d467fa70eba8837ec8faa24a817be 100644 (file)
@@ -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;
                         })
index e83de04335ac485f77c739337a88d999f2096be8..5e5932e8ae90d6c5f440a74f0f4665583a9f4e36 100644 (file)
@@ -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) {
index 8a5457a6fc760b15aeea5f063afa2f7c1c8c3b07..5a3185a0c31df33ba5c40c9a8e0456fc77aa6ea0 100644 (file)
@@ -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 {