diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-05 09:02:44 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-05 09:02:44 +0300 |
commit | 9acc2ba905b7e4c24758475e497720fbb1e61229 (patch) | |
tree | 0f7a24109dbd727cd93bd5dce1d727764e2dc31e /interface | |
parent | d4271e0a88a1be844d3cfeda0f9716871b48d19d (diff) | |
download | rspamd-9acc2ba905b7e4c24758475e497720fbb1e61229.tar.gz rspamd-9acc2ba905b7e4c24758475e497720fbb1e61229.zip |
[Minor] JS: Remove extra spaces
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/config.js | 2 | ||||
-rw-r--r-- | interface/js/app/graph.js | 10 | ||||
-rw-r--r-- | interface/js/app/history.js | 2 | ||||
-rw-r--r-- | interface/js/app/rspamd.js | 4 | ||||
-rw-r--r-- | interface/js/app/stats.js | 2 | ||||
-rw-r--r-- | interface/js/app/symbols.js | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index 8c15b983e..343545d73 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -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 + diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index 85a11fc46..036a1ac24 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -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 }); diff --git a/interface/js/app/history.js b/interface/js/app/history.js index ce9d8e90c..4f5f7b4d5 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 += " "; diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 03a0713b1..bdd8d8793 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -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 = []; diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 5e5932e8a..d5bea0f9f 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -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); diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index 2699eefbe..a2a1205d4 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -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) { |