Actualiser js/admin.js
This commit is contained in:
+5
-4
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user