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