Fix visual appearance of "disponible" photos in explorer

This commit is contained in:
Théo Marchal 2021-03-07 00:36:07 +01:00
parent 862a7348e6
commit e41ccc5549

View File

@ -116,10 +116,13 @@ function updateMenu(availableOptions)
{
if ($(this).prop("value") != "all" && $(this).prop("value") != "exist")
$(this).parent().addClass("filter");
// special case for "exist" in photos
if ($(this).prop("value") == "exist")
$(this).parent().removeClass("filter");
if ($(this).prop("value") == "exist") // special case for "exist" in photos
{
if (array.includes("none") && !array.includes("bad") && !array.includes("ok") && !array.includes("good"))
$(this).parent().addClass("filter");
else
$(this).parent().removeClass("filter");
}
}
else
$(this).parent().removeClass("filter");