Actualiser js/public.js

This commit is contained in:
2026-06-22 16:08:40 +02:00
parent 74c2e606e7
commit 2025c4c9ae
+7 -6
View File
@@ -114,12 +114,13 @@ function renderPublicGrid() {
let filtered = films.filter(f => f.type === currentPubTab);
// FILTRE PHYSIQUE UNIQUENENT
if (physicalOnlyFilter) {
filtered = filtered.filter(f =>
!f.streaming ||
f.streaming === 'Disponible en support physique ou Cinéma' ||
f.streaming.trim() === ''
);
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 (currentPubTab === 'critique' && activeRatingFilter > 0) {