This commit is contained in:
Flatlogic Bot 2026-04-09 11:35:30 +00:00
parent 033e89484e
commit 11ac0a6bb5

View File

@ -186,7 +186,7 @@ try {
border-radius: 999px; border-radius: 999px;
background: rgba(162, 155, 120, 0.14); background: rgba(162, 155, 120, 0.14);
color: #f2eed9; color: #f2eed9;
font-size: 0.72em; font-size: 0.60em;
font-weight: 700; font-weight: 700;
letter-spacing: 0.06em; letter-spacing: 0.06em;
text-transform: uppercase; text-transform: uppercase;
@ -349,8 +349,8 @@ try {
</head> </head>
<body> <body>
<div class="assets-div-menu md-trigger" data-modal="modal-ScanReference"> <div class="assets-div-menu">
<a href="#">Contenu à venir</a> <a href="#" class="md-trigger" data-modal="modal-ScanReference">Contenu à venir</a>
</div> </div>
<div class="connexion-div-menu <?php echo $is_authenticated ? 'is-authenticated' : 'md-trigger'; ?>" data-login-label="Connexion" <?php echo $is_authenticated ? '' : 'data-modal="modal-Login"'; ?> id="accountPanel"> <div class="connexion-div-menu <?php echo $is_authenticated ? 'is-authenticated' : 'md-trigger'; ?>" data-login-label="Connexion" <?php echo $is_authenticated ? '' : 'data-modal="modal-Login"'; ?> id="accountPanel">
@ -606,6 +606,12 @@ try {
refreshStatus(); refreshStatus();
} }
function clearSelection() {
selectedIds.clear();
rows.forEach((row) => row.classList.remove('is-selected'));
refreshStatus();
}
rows.forEach((row) => { rows.forEach((row) => {
row.addEventListener('click', function () { row.addEventListener('click', function () {
const rowId = String(row.dataset.resourceId || ''); const rowId = String(row.dataset.resourceId || '');
@ -634,6 +640,7 @@ try {
const ids = Array.from(selectedIds); const ids = Array.from(selectedIds);
saveFilter(ids); saveFilter(ids);
applyFilter(ids); applyFilter(ids);
clearSelection();
}); });
clearButton.addEventListener('click', function () { clearButton.addEventListener('click', function () {
@ -641,6 +648,7 @@ try {
applyFilter([]); applyFilter([]);
}); });
applyFilter(loadFilter()); applyFilter(loadFilter());
})(); })();
</script> </script>