From: Alexander Moisseev Date: Wed, 4 Jul 2018 09:47:17 +0000 (+0300) Subject: [Minor] JS: Add missing spaces before block brackets X-Git-Tag: 1.7.8~44^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91efdbe15f2934f7cebfe0d11bea4937a86e1d3e;p=rspamd.git [Minor] JS: Add missing spaces before block brackets --- 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");