diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-06 09:57:07 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-06 09:57:07 +0300 |
commit | d3c4028f4da8e84ffb54198d42637778a3becb69 (patch) | |
tree | 866ea5ad7f358144bd3d98c61c58bbb105dd7506 /interface/js/app/symbols.js | |
parent | 719327eb8b16c52a4474e544363a9b1230ff9e11 (diff) | |
download | rspamd-d3c4028f4da8e84ffb54198d42637778a3becb69.tar.gz rspamd-d3c4028f4da8e84ffb54198d42637778a3becb69.zip |
[Minor] JS: Remove redundant quotes
around object literal property names
Diffstat (limited to 'interface/js/app/symbols.js')
-rw-r--r-- | interface/js/app/symbols.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index f0bd71be9..8b8160913 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -175,14 +175,14 @@ define(["jquery", "footable"], $create : function () { this._super(); var self = this, $form_grp = $("<div/>", { - "class" : "form-group" + class : "form-group" }).append($("<label/>", { - "class" : "sr-only", + class : "sr-only", text : "Group" })).prependTo(self.$form); self.$group = $("<select/>", { - "class" : "form-control" + class : "form-control" }).on("change", { self : self }, self._onStatusDropdownChanged).append( @@ -214,33 +214,33 @@ define(["jquery", "footable"], } }); ft.symbols = FooTable.init("#symbolsTable", { - "columns": [ - {"sorted": true, "direction": "ASC", "name":"group", "title":"Group", "style":{"font-size":"11px"}}, - {"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":"time", "title":"Avg. time", "breakpoints":"xs sm", "style":{"font-size":"11px"}}, - {"name":"save", "title":"Save", "style":{"font-size":"11px"}}, + columns: [ + {sorted: true, direction: "ASC", name:"group", title:"Group", style:{"font-size":"11px"}}, + {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:"time", title:"Avg. time", breakpoints:"xs sm", style:{"font-size":"11px"}}, + {name:"save", title:"Save", style:{"font-size":"11px"}}, ], - "rows": items[0], - "paging": { - "enabled": true, - "limit": 5, - "size": 25 + rows: items[0], + paging: { + enabled: true, + limit: 5, + size: 25 }, - "filtering": { - "enabled": true, - "position": "left", - "connectors": false + filtering: { + enabled: true, + position: "left", + connectors: false }, - "sorting": { - "enabled": true + sorting: { + enabled: true }, components: { filtering: FooTable.groupFilter }, - "on": { + on: { "ready.ft.table": function () { if (rspamd.read_only) { $(".mb-disabled").attr("disabled", true); |