mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-08-23 19:32:39 +02:00
Add files via upload
This commit is contained in:
+11
-2
@@ -771,9 +771,16 @@ document.addEventListener('languagechange', function () {
|
|||||||
var auditCustomSelectMap = {};
|
var auditCustomSelectMap = {};
|
||||||
var auditFilterSelectsDocListener = false;
|
var auditFilterSelectsDocListener = false;
|
||||||
|
|
||||||
|
function closeAuditCustomSelect(selectId) {
|
||||||
|
var reg = auditCustomSelectMap[selectId];
|
||||||
|
if (reg && reg.wrapper) {
|
||||||
|
reg.wrapper.classList.remove('open');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function closeAllAuditCustomSelects() {
|
function closeAllAuditCustomSelects() {
|
||||||
Object.keys(auditCustomSelectMap).forEach(function (id) {
|
Object.keys(auditCustomSelectMap).forEach(function (id) {
|
||||||
auditCustomSelectMap[id].wrapper.classList.remove('open');
|
closeAuditCustomSelect(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -872,13 +879,15 @@ function enhanceAuditFilterSelect(selectId) {
|
|||||||
dropdown.addEventListener('click', function (e) {
|
dropdown.addEventListener('click', function (e) {
|
||||||
var opt = e.target.closest('.audit-custom-select-option');
|
var opt = e.target.closest('.audit-custom-select-option');
|
||||||
if (!opt) return;
|
if (!opt) return;
|
||||||
|
e.stopPropagation();
|
||||||
var val = opt.getAttribute('data-value');
|
var val = opt.getAttribute('data-value');
|
||||||
if (val === null) val = '';
|
if (val === null) val = '';
|
||||||
|
closeAuditCustomSelect(selectId);
|
||||||
if (select.value !== val) {
|
if (select.value !== val) {
|
||||||
select.value = val;
|
select.value = val;
|
||||||
select.dispatchEvent(new Event('change', { bubbles: true }));
|
select.dispatchEvent(new Event('change', { bubbles: true }));
|
||||||
}
|
}
|
||||||
wrapper.classList.remove('open');
|
closeAuditCustomSelect(selectId);
|
||||||
syncAuditCustomSelect(selectId);
|
syncAuditCustomSelect(selectId);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -3816,7 +3816,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="audit-filter-fields">
|
<div class="audit-filter-fields">
|
||||||
<div class="audit-filter-row">
|
<div class="audit-filter-row">
|
||||||
<label class="audit-field audit-field--event">
|
<div class="audit-field audit-field--event">
|
||||||
<span data-i18n="settingsAudit.filterEvent">事件类型</span>
|
<span data-i18n="settingsAudit.filterEvent">事件类型</span>
|
||||||
<div class="audit-filter-cascade">
|
<div class="audit-filter-cascade">
|
||||||
<select id="audit-filter-category" onchange="onAuditCategoryFilterChange()" aria-label="类别">
|
<select id="audit-filter-category" onchange="onAuditCategoryFilterChange()" aria-label="类别">
|
||||||
@@ -3842,7 +3842,7 @@
|
|||||||
<option value="" data-i18n="settingsAudit.filterAllActions">全部操作</option>
|
<option value="" data-i18n="settingsAudit.filterAllActions">全部操作</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</div>
|
||||||
<label class="audit-field audit-field--result">
|
<label class="audit-field audit-field--result">
|
||||||
<span data-i18n="settingsAudit.filterResult">结果</span>
|
<span data-i18n="settingsAudit.filterResult">结果</span>
|
||||||
<select id="audit-filter-result">
|
<select id="audit-filter-result">
|
||||||
|
|||||||
Reference in New Issue
Block a user