"no-loop-func": "off",
"no-negated-condition": "off",
"no-param-reassign": "off",
- "no-redeclare": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
$tbody = $("<tbody>");
$.each(data, function (i, item) {
+ var label;
if ((item.editable === false || rspamd.read_only)) {
- var label = "<span class=\"label label-default\">Read</span>";
+ label = "<span class=\"label label-default\">Read</span>";
} else {
- var label = "<span class=\"label label-default\">Read</span> <span class=\"label label-success\">Write</span>";
+ label = "<span class=\"label label-default\">Read</span> <span class=\"label label-success\">Write</span>";
}
var $tr = $("<tr>");
$("<td class=\"col-md-2 maps-cell\">" + label + "</td>").appendTo($tr);
preprocess_item(item);
Object.keys(item.symbols).map(function (key) {
+ var str;
var sym = item.symbols[key];
if (sym.description) {
- var str = "<strong><abbr data-sym-key=\"" + key + "\">" + sym.name + "</abbr></strong>(" + sym.score + ")";
+ str = "<strong><abbr data-sym-key=\"" + key + "\">" + sym.name + "</abbr></strong>(" + sym.score + ")";
// Store description for tooltip
symbolDescriptions[key] = sym.description;
} else {
- var str = "<strong>" + sym.name + "</strong>(" + sym.score + ")";
+ str = "<strong>" + sym.name + "</strong>(" + sym.score + ")";
}
if (sym.options) {