diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-16 19:31:14 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-09-16 19:31:14 +0300 |
commit | 264c8b3d079012d499dafea682888ad2d3f8265f (patch) | |
tree | 9e4c8da5a341a3729c87f39d8ea82d922aa2f1ac /interface/js/app/history.js | |
parent | dff3186aa7c0020d0fb3fad7950dbcf4bee6a36f (diff) | |
download | rspamd-264c8b3d079012d499dafea682888ad2d3f8265f.tar.gz rspamd-264c8b3d079012d499dafea682888ad2d3f8265f.zip |
[Minor] Enforce consistent key-value spacing
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r-- | interface/js/app/history.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 990f60a09..21a6edfc0 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -151,7 +151,7 @@ define(["jquery", "footable", "humanize"], full += item.rcpt_mime.join(", "); shrt += item.rcpt_mime.slice(0, rcpt_lim).join(",​") + more("rcpt_mime"); } - return {full: full, shrt: shrt}; + return {full:full, shrt:shrt}; } preprocess_item(item); @@ -511,36 +511,36 @@ define(["jquery", "footable", "humanize"], function initHistoryTable(rspamd, tables, data, items) { FooTable.actionFilter = FooTable.Filtering.extend({ - construct : function (instance) { + construct: function (instance) { this._super(instance); this.actions = ["reject", "add header", "greylist", "no action", "soft reject", "rewrite subject"]; this.def = "Any action"; this.$action = null; }, - $create : function () { + $create: function () { this._super(); var self = this, $form_grp = $("<div/>", { - class : "form-group" + class: "form-group" }).append($("<label/>", { - class : "sr-only", - text : "Action" + class: "sr-only", + text: "Action" })).prependTo(self.$form); self.$action = $("<select/>", { - class : "form-control" + class: "form-control" }).on("change", { - self : self + self: self }, self._onStatusDropdownChanged).append( $("<option/>", { - text : self.def + text: self.def })).appendTo($form_grp); $.each(self.actions, function (i, action) { self.$action.append($("<option/>").text(action)); }); }, - _onStatusDropdownChanged : function (e) { + _onStatusDropdownChanged: function (e) { var self = e.data.self, selected = $(this).val(); if (selected !== self.def) { if (selected === "reject") { @@ -553,7 +553,7 @@ define(["jquery", "footable", "humanize"], } self.filter(); }, - draw : function () { + draw: function () { this._super(); var action = this.find("action"); if (action instanceof FooTable.Filter) { @@ -705,7 +705,7 @@ define(["jquery", "footable", "humanize"], function initErrorsTable(tables, rows) { tables.errors = FooTable.init("#errorsLog", { columns: [ - {sorted: true, direction: "DESC", name:"ts", title:"Time", style:{"font-size":"11px", "width":300, "maxWidth":300}}, + {sorted:true, direction:"DESC", name:"ts", title:"Time", style:{"font-size":"11px", "width":300, "maxWidth":300}}, {name:"type", title:"Worker type", breakpoints:"xs sm", style:{"font-size":"11px", "width":150, "maxWidth":150}}, {name:"pid", title:"PID", breakpoints:"xs sm", style:{"font-size":"11px", "width":110, "maxWidth":110}}, {name:"module", title:"Module", style:{"font-size":"11px"}}, |