mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-07-08 21:48:20 +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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user