From b7f6463e7c448c93de054245ebea3056588f85da Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Wed, 4 Jul 2018 12:23:41 +0300 Subject: [PATCH] [Minor] JS: Remove spaces inside array brackets --- interface/js/app/history.js | 8 ++++---- interface/js/app/stats.js | 4 ++-- interface/js/app/symbols.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 9022f268b..4280e5854 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -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"); diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index 4afdda5f2..738fd59cf 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -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); } diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index ffe36da39..12c804468 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -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"); } -- 2.39.5