chg: [website] module select

when select 'ip' select 'ip-dst' and 'ip-src' too
main
David Cruciani 2024-02-26 14:52:30 +01:00
parent 7e3ead7b9e
commit b5b42e6807
No known key found for this signature in database
GPG Key ID: 8690CDE1E3994B9B
2 changed files with 13 additions and 3 deletions

View File

@ -6,7 +6,10 @@ body {
background-color: #fbfbfb;
}
main
{
overflow-x: auto;
}
span#goTop{
position: fixed;
right: 1em;

View File

@ -48,7 +48,7 @@
<h4>Modules</h4>
<select data-placeholder="Modules" class="select2-modules form-control" multiple name="modules_select" id="modules_select">
<template v-for="key in modules_list">
<option v-if="key.mispattributes.input.includes(attr_selected)" :value="key.name" :title="key.meta.description">[[key.name]]</option>
<option v-if="checked_attr(key.mispattributes.input)" :value="key.name" :title="key.meta.description">[[key.name]]</option>
</template>
</select>
</div>
@ -232,7 +232,14 @@
}
function checked_attr(arr1){
return arr1.includes(attr_selected.value)
let loc = arr1.includes(attr_selected.value)
if(!loc && attr_selected.value == 'ip'){
loc = arr1.includes('ip-dst')
if(!loc && attr_selected.value == 'ip'){
loc = arr1.includes('ip-src')
}
}
return loc
}