Actualiser js/public.js
This commit is contained in:
+7
-6
@@ -114,12 +114,13 @@ function renderPublicGrid() {
|
|||||||
let filtered = films.filter(f => f.type === currentPubTab);
|
let filtered = films.filter(f => f.type === currentPubTab);
|
||||||
|
|
||||||
// FILTRE PHYSIQUE UNIQUENENT
|
// FILTRE PHYSIQUE UNIQUENENT
|
||||||
if (physicalOnlyFilter) {
|
if (physicalFilter && physicalFilter.checked) {
|
||||||
filtered = filtered.filter(f =>
|
filtered = filtered.filter(f => {
|
||||||
!f.streaming ||
|
// Pour les critiques : vérifier le champ streaming
|
||||||
f.streaming === 'Disponible en support physique ou Cinéma' ||
|
if (f.type === 'critique') {
|
||||||
f.streaming.trim() === ''
|
return f.streaming && f.streaming.toLowerCase().includes('support physique');
|
||||||
);
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentPubTab === 'critique' && activeRatingFilter > 0) {
|
if (currentPubTab === 'critique' && activeRatingFilter > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user