Fix issue with "exist" in photos that was not filtering
This commit is contained in:
@ -96,11 +96,11 @@ function generateMenu(availableOptions)
|
||||
$(".box.help .item-cont .generated").append(html);
|
||||
}
|
||||
|
||||
$(".box.places select").append('<option value="">Aucun</option');
|
||||
$(".box.places select").append('<option value="">Aucun filtre</option');
|
||||
for (place of availableOptions.places)
|
||||
$(".box.places select").append('<option value="' + place + '">' + place + '</option');
|
||||
|
||||
$(".box.tags select").append('<option value="">Aucun</option');
|
||||
$(".box.tags select").append('<option value="">Aucun filtre</option');
|
||||
for (tag of availableOptions.tags)
|
||||
$(".box.tags select").append('<option value="' + tag + '">' + tag + '</option');
|
||||
}
|
||||
@ -119,14 +119,7 @@ function updateMenu(availableOptions)
|
||||
|
||||
// special case for "exist" in photos
|
||||
if ($(this).prop("value") == "exist")
|
||||
{
|
||||
if (array.includes("none") && ! (array.includes("bad") || array.includes("ok") || array.includes("good")))
|
||||
$(this).parent().addClass("filter");
|
||||
else
|
||||
$(this).parent().removeClass("filter");
|
||||
if (array.length == 0)
|
||||
$(this).parent().addClass("filter");
|
||||
}
|
||||
$(this).parent().removeClass("filter");
|
||||
}
|
||||
else
|
||||
$(this).parent().removeClass("filter");
|
||||
@ -188,7 +181,7 @@ function URLGeneration(availableOptions)
|
||||
for (a of param)
|
||||
{
|
||||
html = '<span><span class="inline">※ </span><select name="' + name + '">';
|
||||
html += '<option value="">Aucun</option>';
|
||||
html += '<option value="">Aucun filtre</option>';
|
||||
for (i of names)
|
||||
{
|
||||
if (i == a)
|
||||
@ -202,7 +195,7 @@ function URLGeneration(availableOptions)
|
||||
if (!param.includes("all") && param.length >= 1 && name != "place")
|
||||
{
|
||||
html = '<span><span class="inline">※ </span><select name="' + name + '">';
|
||||
html += '<option value="">Aucun</option>';
|
||||
html += '<option value="">Aucun filtre</option>';
|
||||
for (i of names)
|
||||
html += '<option value="' + i + '">' + i + '</option>';
|
||||
html += '</select></span>';
|
||||
|
Reference in New Issue
Block a user