Add files via upload

This commit is contained in:
公明
2026-07-07 11:07:34 +08:00
committed by GitHub
parent c84612211c
commit e88b28c8bd
2 changed files with 13 additions and 4 deletions
+11 -2
View File
@@ -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);
});
+2 -2
View File
@@ -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">