From 2025c4c9ae1fa1dcc6ba74b18727df8c640daa77 Mon Sep 17 00:00:00 2001 From: Cedric Date: Mon, 22 Jun 2026 16:08:40 +0200 Subject: [PATCH] Actualiser js/public.js --- js/public.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/js/public.js b/js/public.js index 4e74f31..966d437 100644 --- a/js/public.js +++ b/js/public.js @@ -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) {