mirror of https://github.com/MISP/MISP
fix: [misp.js] Support display on fretext values and removed useless functions
parent
4c84a00aaa
commit
fb8a6ccac7
|
@ -3506,7 +3506,9 @@ function serverRuleUpdate() {
|
|||
rules[type][field][status].forEach(function(item) {
|
||||
if (t.length > 0) t += ', ';
|
||||
if (type === 'pull') t += item;
|
||||
else t += indexedList[item];
|
||||
else {
|
||||
t += indexedList[item] !== undefined ? indexedList[item] : item;
|
||||
}
|
||||
});
|
||||
$('#' + type + '_' + field + '_' + status + '_text').text(t);
|
||||
} else {
|
||||
|
@ -3526,18 +3528,6 @@ function serverRuleUpdate() {
|
|||
serverRuleGenerateJSON();
|
||||
}
|
||||
|
||||
function serverRuleFormActivate(type) {
|
||||
if (type != 'pull' && type != 'push') return false;
|
||||
$('.server_rule_popover').hide();
|
||||
$('#gray_out').fadeIn();
|
||||
$('#server_' + type + '_rule_popover').show();
|
||||
}
|
||||
|
||||
function serverRuleCancel() {
|
||||
$("#gray_out").fadeOut();
|
||||
$(".server_rule_popover").fadeOut();
|
||||
}
|
||||
|
||||
function serverRuleGenerateJSON() {
|
||||
validOptions.forEach(function(type) {
|
||||
if ($('#Server' + type.ucfirst() + "Rules").length) {
|
||||
|
|
Loading…
Reference in New Issue