summaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-04 12:47:17 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-04 12:47:17 +0300
commit91efdbe15f2934f7cebfe0d11bea4937a86e1d3e (patch)
treeda685a705b345cabab932e67160fe9468125b7b3 /interface/js
parent66b7bdb02806e49647641cef762bdfafcd7638cf (diff)
downloadrspamd-91efdbe15f2934f7cebfe0d11bea4937a86e1d3e.tar.gz
rspamd-91efdbe15f2934f7cebfe0d11bea4937a86e1d3e.zip
[Minor] JS: Add missing spaces before block brackets
Diffstat (limited to 'interface/js')
-rw-r--r--interface/js/app/graph.js2
-rw-r--r--interface/js/app/history.js6
-rw-r--r--interface/js/app/rspamd.js4
-rw-r--r--interface/js/app/symbols.js4
4 files changed, 8 insertions, 8 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js
index fdda44e92..85a11fc46 100644
--- a/interface/js/app/graph.js
+++ b/interface/js/app/graph.js
@@ -213,7 +213,7 @@ define(["jquery", "d3evolution", "footable"],
rspamd.queryNeighbours("graph", function (req_data) {
var neighbours_data = req_data
.filter(function (d) { return d.status; }) // filter out unavailable neighbours
- .map(function (d){ return d.data; });
+ .map(function (d) { return d.data; });
if (neighbours_data.length > 1) {
neighbours_data.reduce(function (res, curr) {
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 00fdc9528..ce9d8e90c 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -517,7 +517,7 @@ define(["jquery", "footable", "humanize"],
_onStatusDropdownChanged : function(e) {
var self = e.data.self, selected = $(this).val();
if (selected !== self.def) {
- if(selected === "reject"){
+ if (selected === "reject") {
self.addFilter("action", "reject -soft", ["action"]);
} else {
self.addFilter("action", selected, ["action"]);
@@ -531,7 +531,7 @@ define(["jquery", "footable", "humanize"],
this._super();
var action = this.find("action");
if (action instanceof FooTable.Filter) {
- if(action.query.val() === "reject -soft"){
+ if (action.query.val() === "reject -soft") {
this.$action.val("reject");
} else {
this.$action.val(action.query.val());
@@ -568,7 +568,7 @@ define(["jquery", "footable", "humanize"],
var neighbours_data = req_data
.filter(function (d) { return d.status; }) // filter out unavailable neighbours
- .map(function (d){ return d.data; });
+ .map(function (d) { return d.data; });
if (neighbours_data.length && !differentVersions()) {
var data = {};
if (neighbours_data[0].version) {
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js
index 0630f36ac..573739ab5 100644
--- a/interface/js/app/rspamd.js
+++ b/interface/js/app/rspamd.js
@@ -322,7 +322,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
xhr.setRequestHeader("Password", getPassword());
if (headers) {
- $.each(headers, function(hname, hvalue){
+ $.each(headers, function(hname, hvalue) {
xhr.setRequestHeader(hname, hvalue);
});
}
@@ -395,7 +395,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config,
xhr.setRequestHeader("Password", getPassword());
if (headers) {
- $.each(headers, function(hname, hvalue){
+ $.each(headers, function(hname, hvalue) {
xhr.setRequestHeader(hname, hvalue);
});
}
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js
index 12c804468..5579969ca 100644
--- a/interface/js/app/symbols.js
+++ b/interface/js/app/symbols.js
@@ -219,7 +219,7 @@ define(["jquery", "footable"],
{"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":"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"}},
],
@@ -253,7 +253,7 @@ define(["jquery", "footable"],
rspamd.alertMessage("alert-modal alert-error", data.statusText);
}
});
- $(document).on("click", "#symbolsTable :button", function(event){
+ $(document).on("click", "#symbolsTable :button", function(event) {
var value = $(this).data("save");
if (!value) return;
saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == "cluster");