Fixed Show All themes
This commit is contained in:
parent
ee4036d8c2
commit
7ab5ff06cd
@ -92,6 +92,9 @@
|
|||||||
<a class="navbar-item" href="/create">
|
<a class="navbar-item" href="/create">
|
||||||
Add Set
|
Add Set
|
||||||
</a>
|
</a>
|
||||||
|
<a class="navbar-item" href="/missing">
|
||||||
|
Missing
|
||||||
|
</a>
|
||||||
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navMenu">
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navMenu">
|
||||||
<span aria-hidden="true"></span>
|
<span aria-hidden="true"></span>
|
||||||
<span aria-hidden="true"></span>
|
<span aria-hidden="true"></span>
|
||||||
@ -587,7 +590,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
gridItems.forEach(function(item) {
|
gridItems.forEach(function(item) {
|
||||||
const themeLink = item.querySelector('.set_theme');
|
const themeLink = item.querySelector('.set_theme');
|
||||||
const themeId = themeLink.textContent.trim();
|
const themeId = themeLink.textContent.trim();
|
||||||
if (!selectedTheme || themeId === selectedTheme || selectedTheme == "Show all") {
|
if (!selectedTheme || themeId === selectedTheme || selectedTheme == '> Show all <') {
|
||||||
item.style.display = 'block'; // Show the grid item
|
item.style.display = 'block'; // Show the grid item
|
||||||
} else {
|
} else {
|
||||||
item.style.display = 'none'; // Hide the grid item
|
item.style.display = 'none'; // Hide the grid item
|
||||||
|
Loading…
Reference in New Issue
Block a user