rspamd.queryNeighbours("graph", function (req_data) {
var neighbours_data = req_data
.filter(function (d) { return d.status; }) // filter out unavailable neighbours
- .map(function (d){ return d.data; });
+ .map(function (d) { return d.data; });
if (neighbours_data.length > 1) {
neighbours_data.reduce(function (res, curr) {
_onStatusDropdownChanged : function(e) {
var self = e.data.self, selected = $(this).val();
if (selected !== self.def) {
- if(selected === "reject"){
+ if (selected === "reject") {
self.addFilter("action", "reject -soft", ["action"]);
} else {
self.addFilter("action", selected, ["action"]);
this._super();
var action = this.find("action");
if (action instanceof FooTable.Filter) {
- if(action.query.val() === "reject -soft"){
+ if (action.query.val() === "reject -soft") {
this.$action.val("reject");
} else {
this.$action.val(action.query.val());
var neighbours_data = req_data
.filter(function (d) { return d.status; }) // filter out unavailable neighbours
- .map(function (d){ return d.data; });
+ .map(function (d) { return d.data; });
if (neighbours_data.length && !differentVersions()) {
var data = {};
if (neighbours_data[0].version) {
xhr.setRequestHeader("Password", getPassword());
if (headers) {
- $.each(headers, function(hname, hvalue){
+ $.each(headers, function(hname, hvalue) {
xhr.setRequestHeader(hname, hvalue);
});
}
xhr.setRequestHeader("Password", getPassword());
if (headers) {
- $.each(headers, function(hname, hvalue){
+ $.each(headers, function(hname, hvalue) {
xhr.setRequestHeader(hname, hvalue);
});
}
{"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":"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"}},
],
rspamd.alertMessage("alert-modal alert-error", data.statusText);
}
});
- $(document).on("click", "#symbolsTable :button", function(event){
+ $(document).on("click", "#symbolsTable :button", function(event) {
var value = $(this).data("save");
if (!value) return;
saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == "cluster");