Fix issue with "exist" in photos that was not filtering
This commit is contained in:
@ -213,13 +213,6 @@ jQuery(document).ready(function($)
|
||||
if (p == "90") for (i = 90; i <= 99; i++) selectedDimensions.push(i);
|
||||
if (p == "100") for (i = 100; i <= 109; i++) selectedDimensions.push(i);
|
||||
}
|
||||
// special case of a multi selector
|
||||
if (selectedPhotos.includes("exist"))
|
||||
{
|
||||
selectedPhotos.push("bad");
|
||||
selectedPhotos.push("ok");
|
||||
selectedPhotos.push("good");
|
||||
}
|
||||
return {"photos": selectedPhotos, "years": selectedYears, "months": selectedMonths, "genres": selectedGenres, "themes": selectedThemes,
|
||||
"places": selectedPlaces, "tags": selectedTags, "dimensions": selectedDimensions, "helps": selectedHelps};
|
||||
}
|
||||
@ -291,9 +284,25 @@ jQuery(document).ready(function($)
|
||||
$('input[name="' + name + '"]').change(function()
|
||||
{
|
||||
if (this.checked)
|
||||
{
|
||||
if (this.id == "exist") // photos special case
|
||||
{
|
||||
param.push("bad");
|
||||
param.push("ok");
|
||||
param.push("good");
|
||||
}
|
||||
param.push(this.id);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.id == "exist") // photos special case
|
||||
{
|
||||
removeFromArray(param, "bad");
|
||||
removeFromArray(param, "ok");
|
||||
removeFromArray(param, "good");
|
||||
}
|
||||
removeFromArray(param, this.id);
|
||||
}
|
||||
|
||||
selectedOptions = gatherURLdata();
|
||||
data = originalData;
|
||||
|
Reference in New Issue
Block a user