Actualiser js/admin.js

This commit is contained in:
2026-06-22 16:07:06 +02:00
parent 9cf2526b3f
commit 74c2e606e7
+5 -4
View File
@@ -118,10 +118,11 @@ function renderAdminTable() {
if (physicalFilter && physicalFilter.checked) {
filtered = filtered.filter(f => {
// Pour les critiques : vérifier le champ streaming
if (f.type === 'critique') {
return f.streaming && f.streaming.toLowerCase().includes('support physique');
}
});
if (f.type === 'critique') {
return f.streaming && f.streaming.toLowerCase().includes('support physique');
}
});
}
if (currentSearch) {
filtered = filtered.filter(f => f.title.toLowerCase().includes(currentSearch) || (f.director && f.director.toLowerCase().includes(currentSearch)));
}