]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] JS: Remove spaces inside array brackets
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 09:23:41 +0000 (12:23 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 4 Jul 2018 09:23:41 +0000 (12:23 +0300)
interface/js/app/history.js
interface/js/app/stats.js
interface/js/app/symbols.js

index 9022f268b82c3b26f1f51df49886a88781f89323..4280e5854de47e750e51e750c4c71c7cba91f6c2 100644 (file)
@@ -487,8 +487,8 @@ define(["jquery", "footable", "humanize"],
             FooTable.actionFilter = FooTable.Filtering.extend({
                 construct : function(instance) {
                     this._super(instance);
-                    this.actions = [ "reject", "add header", "greylist",
-                        "no action", "soft reject", "rewrite subject" ];
+                    this.actions = ["reject", "add header", "greylist",
+                        "no action", "soft reject", "rewrite subject"];
                     this.def = "Any action";
                     this.$action = null;
                 },
@@ -518,9 +518,9 @@ define(["jquery", "footable", "humanize"],
                     var self = e.data.self, selected = $(this).val();
                     if (selected !== self.def) {
                         if(selected === "reject"){
-          self.addFilter("action", "reject -soft", [ "action" ]);
+          self.addFilter("action", "reject -soft", ["action"]);
                         } else {
-          self.addFilter("action", selected, [ "action" ]);
+          self.addFilter("action", selected, ["action"]);
                         }
                     } else {
                         self.removeFilter("action");
index 4afdda5f2ce1c92cf9f79921b126765a1e439e45..738fd59cf9f5fd22e6aedb3e64e45248ce794166 100644 (file)
@@ -140,7 +140,7 @@ define(["jquery", "d3pie", "humanize"],
             var creds = JSON.parse(sessionStorage.getItem("Credentials"));
             if (creds && creds[checked_server]) {
                 var data = creds[checked_server].data;
-                var new_data = [ {
+                var new_data = [{
                     "color" : "#66CC00",
                     "label" : "Clean",
                     "data" : data.clean,
@@ -165,7 +165,7 @@ define(["jquery", "d3pie", "humanize"],
                     "label" : "Rejected",
                     "data" : data.reject,
                     "value" : data.reject
-                } ];
+                }];
 
                 return rspamd.drawPie(pie, "chart", new_data);
             }
index ffe36da3989f002101f97bc729a05be3044d9d07..12c8044681a9bd13afe5de98c09744d2d19f52e0 100644 (file)
@@ -197,7 +197,7 @@ define(["jquery", "footable"],
                         _onStatusDropdownChanged : function(e) {
                             var self = e.data.self, selected = $(this).val();
                             if (selected !== self.def) {
-                                self.addFilter("group", selected, [ "group" ]);
+                                self.addFilter("group", selected, ["group"]);
                             } else {
                                 self.removeFilter("group");
                             }