mirror of https://github.com/MISP/MISP
chg: [eventFiltering] Improved UI - WIP
parent
7ea0e905eb
commit
613430270e
|
@ -21,7 +21,6 @@ function triggerEventFilteringTool(clicked) {
|
||||||
},
|
},
|
||||||
allow_empty: true,
|
allow_empty: true,
|
||||||
display_empty_filter: false,
|
display_empty_filter: false,
|
||||||
conditions: ['OR', 'AND'],
|
|
||||||
lang: {
|
lang: {
|
||||||
operators: {
|
operators: {
|
||||||
equal: 'show',
|
equal: 'show',
|
||||||
|
@ -225,7 +224,7 @@ function triggerEventFilteringTool(clicked) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
rules: rules = {
|
rules: {
|
||||||
condition: 'AND',
|
condition: 'AND',
|
||||||
not: false,
|
not: false,
|
||||||
rules: [
|
rules: [
|
||||||
|
@ -279,7 +278,8 @@ function triggerEventFilteringTool(clicked) {
|
||||||
condition: 'OR',
|
condition: 'OR',
|
||||||
not: false,
|
not: false,
|
||||||
flags: {
|
flags: {
|
||||||
no_add_group: true
|
no_add_group: true,
|
||||||
|
condition_readonly: true,
|
||||||
},
|
},
|
||||||
rules: [{
|
rules: [{
|
||||||
field: 'objectType',
|
field: 'objectType',
|
||||||
|
@ -291,7 +291,8 @@ function triggerEventFilteringTool(clicked) {
|
||||||
condition: 'OR',
|
condition: 'OR',
|
||||||
not: false,
|
not: false,
|
||||||
flags: {
|
flags: {
|
||||||
no_add_group: true
|
no_add_group: true,
|
||||||
|
condition_readonly: true,
|
||||||
},
|
},
|
||||||
rules: [{
|
rules: [{
|
||||||
field: 'attributeType',
|
field: 'attributeType',
|
||||||
|
@ -305,7 +306,8 @@ function triggerEventFilteringTool(clicked) {
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
flags: {
|
flags: {
|
||||||
no_add_group: true
|
no_add_group: true,
|
||||||
|
condition_readonly: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
icons: {
|
icons: {
|
||||||
|
@ -327,9 +329,6 @@ function triggerEventFilteringTool(clicked) {
|
||||||
updateURL();
|
updateURL();
|
||||||
});
|
});
|
||||||
$wrapper.toggle('blind', 100, { direction: 'up' });
|
$wrapper.toggle('blind', 100, { direction: 'up' });
|
||||||
// remove outer OR condition
|
|
||||||
$ev.find('#eventFilteringQB_group_0 > .rules-group-header input[value="OR"]').parent().remove();
|
|
||||||
$ev.find('#eventFilteringQB_group_0 > .rules-group-body input[value="AND"]').parent().remove();
|
|
||||||
|
|
||||||
$('#eventFilteringQBSubmit').off('click').on('click', function() {
|
$('#eventFilteringQBSubmit').off('click').on('click', function() {
|
||||||
$button = $(this);
|
$button = $(this);
|
||||||
|
|
Loading…
Reference in New Issue