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;
},
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");
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,
"label" : "Rejected",
"data" : data.reject,
"value" : data.reject
- } ];
+ }];
return rspamd.drawPie(pie, "chart", new_data);
}
_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");
}