]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Add missing spaces before block brackets
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 09:47:17 +0000 (12:47 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 09:47:17 +0000 (12:47 +0300)
interface/js/app/graph.js
interface/js/app/history.js
interface/js/app/rspamd.js
interface/js/app/symbols.js

index fdda44e92b3501cf52ef0324bcc14a2394504528..85a11fc46e27e38f32911640b121427efccf09bd 100644 (file)
@@ -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) {
index 00fdc952884d558cd1ae752c167d9881cf25e155..ce9d8e90c85563129d02e36425842c1dd2f4b867 100644 (file)
@@ -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) {
index 0630f36ac37a8f32e3efaccb143b268d425ec320..573739ab5173548bfa850abbe889b365fce2865d 100644 (file)
@@ -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);
                                 });
                             }
index 12c8044681a9bd13afe5de98c09744d2d19f52e0..5579969cacfc6e4c8b21c2f049a02f1a4337819f 100644 (file)
@@ -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");