]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Remove extra spaces
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 5 Jul 2018 06:02:44 +0000 (09:02 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 5 Jul 2018 06:02:44 +0000 (09:02 +0300)
interface/js/app/config.js
interface/js/app/graph.js
interface/js/app/history.js
interface/js/app/rspamd.js
interface/js/app/stats.js
interface/js/app/symbols.js

index 8c15b983e2e777d561069f19d20057efe610520c..343545d7332f03777b6221de3381930d4dde05b7 100644 (file)
@@ -112,7 +112,7 @@ define(["jquery"],
                         disabled = "disabled=\"disabled\"";
                     }
 
-                    $("#"+item.map).remove();
+                    $("#" + item.map).remove();
                     $("<form class=\"form-horizontal form-map\" method=\"post\" action=\"savemap\" data-type=\"map\" id=\"" +
                     item.map + "\" style=\"display:none\">" +
                     "<textarea class=\"list-textarea\"" + disabled + ">" + text +
index 85a11fc46e27e38f32911640b121427efccf09bd..036a1ac248b50a6e2bc659f454dfe97789350952 100644 (file)
@@ -156,11 +156,11 @@ define(["jquery", "d3evolution", "footable"],
                 },
                 columns: [
                     {name: "label", title: "Action"},
-                    {name: "value", title: "Messages",         defaultContent: ""},
-                    {name: "min",   title: "Minimum, " + unit, defaultContent: ""},
-                    {name: "avg",   title: "Average, " + unit, defaultContent: ""},
-                    {name: "max",   title: "Maximum, " + unit, defaultContent: ""},
-                    {name: "last",  title: "Last, " + unit},
+                    {name: "value", title: "Messages", defaultContent: ""},
+                    {name: "min", title: "Minimum, " + unit, defaultContent: ""},
+                    {name: "avg", title: "Average, " + unit, defaultContent: ""},
+                    {name: "max", title: "Maximum, " + unit, defaultContent: ""},
+                    {name: "last", title: "Last, " + unit},
                 ],
                 rows: rows
             });
index ce9d8e90c85563129d02e36425842c1dd2f4b867..4f5f7b4d502cd1a1f5d301c34e4db95e2f47362d 100644 (file)
@@ -140,7 +140,7 @@ define(["jquery", "footable", "humanize"],
                         var full = shrt = "";
                         if (smtp) {
                             full = "[" + item.rcpt_smtp.join(", ") + "] ";
-                            shrt = "[" + item.rcpt_smtp.slice(0, rcpt_lim).join(",&#8203;") + more("rcpt_smtp")  + "]";
+                            shrt = "[" + item.rcpt_smtp.slice(0, rcpt_lim).join(",&#8203;") + more("rcpt_smtp") + "]";
                             if (mime) {
                                 full += " ";
                                 shrt += " ";
index 03a0713b1e7d467fa70eba8837ec8faa24a817be..bdd8d8793e3a38698a175139f81c46169c8ca709 100644 (file)
@@ -82,7 +82,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
         stopTimers();
 
         if (tab_id === "#refresh") {
-            tab_id = "#" + $(".navbar-nav .active > a" ).attr("id");
+            tab_id = "#" + $(".navbar-nav .active > a").attr("id");
         }
 
         switch (tab_id) {
@@ -370,7 +370,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
                             url: window.location.href
                         }
                     };
-                }   else {
+                } else {
                     neighbours = data;
                 }
                 var neighbours_status = [];
index 5e5932e8ae90d6c5f440a74f0f4665583a9f4e36..d5bea0f9fa2ac6fe849082112f02d6fe4fd2b983 100644 (file)
@@ -122,7 +122,7 @@ define(["jquery", "d3pie", "humanize"],
                 "<td class=\"col4\" title=\"SStatus\"><span class=\"icon\"><i class=\"" + glyph_status + "\"></i></span></td>" +
                 "<td class=\"col5\" title=\"short_id\">" + short_id + "</td></tr>");
 
-                $("#selSrv").append( $("<option value=\"" + key + "\">" + key + "</option>"));
+                $("#selSrv").append($("<option value=\"" + key + "\">" + key + "</option>"));
 
                 if (checked_server == key) {
                     $("#clusterTable tbody [value=\"" + key + "\"]").prop("checked", true);
index 2699eefbea3913b6a5a91e4737c1267bca92eb0a..a2a1205d4d0448ed2f7bfeb3366b696f7aa92b04 100644 (file)
@@ -137,7 +137,7 @@ define(["jquery", "footable"],
             if (avg_freq > 0.0) {
                 while (mult * avg_freq < 1.0) {
                     mult *= 10;
-                    exp ++;
+                    exp++;
                 }
             }
             $.each(items, function (i, item) {