capitalize types
This commit is contained in:
parent
f9578af0e4
commit
e27bd125ac
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ function filterChanged() {
|
|||
const filterValue = document.getElementById('filter-select').value
|
||||
options.filter = filterValue
|
||||
document.querySelectorAll('.film').forEach(film => {
|
||||
if (!options.filter || film.dataset.type.split(',').indexOf(options.filter) > -1) {
|
||||
if (!options.filter || film.dataset.type.toLowerCase().split(',').indexOf(options.filter.toLowerCase()) > -1) {
|
||||
console.log(film.dataset.type.split(','), film.dataset.type.split(',').indexOf(options.filter))
|
||||
film.style.display = ''
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue