aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-04 11:05:21 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-04 11:05:21 +0300
commit20013a85adffbfb473dfba16877c2009408e8069 (patch)
treec68f3daa5e5a9210e157d789e0d23bdd0351279f /interface
parent1a9489fdd5a1577d62dd0793959c31968a3e1a38 (diff)
downloadrspamd-20013a85adffbfb473dfba16877c2009408e8069.tar.gz
rspamd-20013a85adffbfb473dfba16877c2009408e8069.zip
[Minor] JS: Add spaces after commas
Diffstat (limited to 'interface')
-rw-r--r--interface/js/app/config.js2
-rw-r--r--interface/js/app/history.js16
-rw-r--r--interface/js/app/symbols.js14
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 = $("<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);
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(",&#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": {
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": {