From 20013a85adffbfb473dfba16877c2009408e8069 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Wed, 4 Jul 2018 11:05:21 +0300 Subject: [PATCH] [Minor] JS: Add spaces after commas --- interface/js/app/config.js | 2 +- interface/js/app/history.js | 16 ++++++++-------- interface/js/app/symbols.js | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 36377f5bf..913ce7538 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -83,7 +83,7 @@ define(["jquery"], } var $tr = $(""); $("" + label + "").appendTo($tr); - $span = $("" + item.uri + "").data("item",item); + $span = $("" + item.uri + "").data("item", item); $span.wrap("").parent().appendTo($tr); $("" + item.description + "").appendTo($tr); $tr.appendTo($tbody); diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 02616ad13..065b97607 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -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(",​") + more("rcpt_smtp") + "]"; + shrt = "[" + item.rcpt_smtp.slice(0, rcpt_lim).join(",​") + 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(",​") + more("rcpt_mime"); + shrt += item.rcpt_mime.slice(0, rcpt_lim).join(",​") + 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": { diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index 66cbc4cf1..ffe36da39 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -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": { -- 2.39.5