fix: [misp.js] Support display on fretext values and removed useless functions

pull/7354/head
mokaddem 2021-04-22 16:26:22 +02:00
parent 4c84a00aaa
commit fb8a6ccac7
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 13 deletions

View File

@ -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) {