]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Add spaces after commas
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 08:05:21 +0000 (11:05 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 08:05:21 +0000 (11:05 +0300)
interface/js/app/config.js
interface/js/app/history.js
interface/js/app/symbols.js

index 36377f5bff93c491b21bd43f9dbb591dbff0f130..913ce7538604e950fef8390951cdb38f2b0f5b4a 100644 (file)
@@ -83,7 +83,7 @@ define(["jquery"],
                         }
                         var $tr = $("<tr>");
                         $("<td class=\"col-md-2 maps-cell\">" + label + "</td>").appendTo($tr);
-                        $span = $("<span class=\"map-link\" data-toggle=\"modal\" data-target=\"#modalDialog\">" + item.uri + "</span>").data("item",item);
+                        $span = $("<span class=\"map-link\" data-toggle=\"modal\" data-target=\"#modalDialog\">" + item.uri + "</span>").data("item", item);
                         $span.wrap("<td>").parent().appendTo($tr);
                         $("<td>" + item.description + "</td>").appendTo($tr);
                         $tr.appendTo($tbody);
index 02616ad134b565fea52ec8a62599f486455834d1..065b976079521375799cb287df0e06830acd8fd6 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 += " ";
@@ -148,7 +148,7 @@ define(["jquery", "footable", "humanize"],
                         }
                         if (mime) {
                             full += item.rcpt_mime.join(", ");
-                            shrt += item.rcpt_mime.slice(0,rcpt_lim).join(",&#8203;") + more("rcpt_mime");
+                            shrt += item.rcpt_mime.slice(0, rcpt_lim).join(",&#8203;") + more("rcpt_mime");
                         }
                         return {full: full, shrt: shrt};
                     }
@@ -720,12 +720,12 @@ define(["jquery", "footable", "humanize"],
             });
             ft.errors = FooTable.init("#errorsLog", {
                 "columns": [
-                    {"sorted": true,"direction": "DESC","name":"ts","title":"Time","style":{"font-size":"11px","width":300,"maxWidth":300}},
-                    {"name":"type","title":"Worker type","breakpoints":"xs sm","style":{"font-size":"11px","width":150,"maxWidth":150}},
-                    {"name":"pid","title":"PID","breakpoints":"xs sm","style":{"font-size":"11px","width":110,"maxWidth":110}},
-                    {"name":"module","title":"Module","style":{"font-size":"11px"}},
-                    {"name":"id","title":"Internal ID","style":{"font-size":"11px"}},
-                    {"name":"message","title":"Message","breakpoints":"xs sm","style":{"font-size":"11px"}},
+                    {"sorted": true, "direction": "DESC", "name":"ts", "title":"Time", "style":{"font-size":"11px", "width":300, "maxWidth":300}},
+                    {"name":"type", "title":"Worker type", "breakpoints":"xs sm", "style":{"font-size":"11px", "width":150, "maxWidth":150}},
+                    {"name":"pid", "title":"PID", "breakpoints":"xs sm", "style":{"font-size":"11px", "width":110, "maxWidth":110}},
+                    {"name":"module", "title":"Module", "style":{"font-size":"11px"}},
+                    {"name":"id", "title":"Internal ID", "style":{"font-size":"11px"}},
+                    {"name":"message", "title":"Message", "breakpoints":"xs sm", "style":{"font-size":"11px"}},
                 ],
                 "rows": data,
                 "paging": {
index 66cbc4cf16027e62bfe631acf7b79ce0291e477c..ffe36da3989f002101f97bc729a05be3044d9d07 100644 (file)
@@ -215,13 +215,13 @@ define(["jquery", "footable"],
                     });
                     ft.symbols = FooTable.init("#symbolsTable", {
                         "columns": [
-                            {"sorted": true,"direction": "ASC", "name":"group","title":"Group","style":{"font-size":"11px"}},
-                            {"name":"symbol","title":"Symbol","style":{"font-size":"11px"}},
-                            {"name":"description","title":"Description","breakpoints":"xs sm","style":{"font-size":"11px"}},
-                            {"name":"weight","title":"Score","style":{"font-size":"11px"}},
-                            {"name":"frequency","title":"Frequency","breakpoints":"xs sm","style":{"font-size":"11px"},"sortValue": function(value){return Number(value).toFixed(2);}},
-                            {"name":"time","title":"Avg. time","breakpoints":"xs sm","style":{"font-size":"11px"}},
-                            {"name":"save","title":"Save","style":{"font-size":"11px"}},
+                            {"sorted": true, "direction": "ASC", "name":"group", "title":"Group", "style":{"font-size":"11px"}},
+                            {"name":"symbol", "title":"Symbol", "style":{"font-size":"11px"}},
+                            {"name":"description", "title":"Description", "breakpoints":"xs sm", "style":{"font-size":"11px"}},
+                            {"name":"weight", "title":"Score", "style":{"font-size":"11px"}},
+                            {"name":"frequency", "title":"Frequency", "breakpoints":"xs sm", "style":{"font-size":"11px"}, "sortValue": function(value){return Number(value).toFixed(2);}},
+                            {"name":"time", "title":"Avg. time", "breakpoints":"xs sm", "style":{"font-size":"11px"}},
+                            {"name":"save", "title":"Save", "style":{"font-size":"11px"}},
                         ],
                         "rows": items[0],
                         "paging": {