Fix exist photos tag

This commit is contained in:
Théo Marchal 2021-03-07 00:44:29 +01:00
parent e41ccc5549
commit e0ebd28dcb

View File

@ -185,6 +185,12 @@ jQuery(document).ready(function($)
selectedYears = [];
selectedDimensions = [];
selectedPhotos = params.photo;
if (selectedPhotos.includes("exist"))
{
if (selectedPhotos.indexOf("bad") === -1) selectedPhotos.push("bad");
if (selectedPhotos.indexOf("ok") === -1) selectedPhotos.push("ok");
if (selectedPhotos.indexOf("good") === -1) selectedPhotos.push("good");
}
selectedMonths = params.month;
selectedGenres = params.genre;
selectedThemes = params.theme;