4,090
edits
No edit summary |
No edit summary |
||
Line 526: | Line 526: | ||
if (filtersDiv.hasClass('is-visible')) { | if (filtersDiv.hasClass('is-visible')) { | ||
filtersDiv.css('display', 'grid').hide().slideDown(100); | filtersDiv.css('display', 'grid').hide().slideDown(100); | ||
$(this).text('[ FILTER ]'); | $(this).text('[FILTER]'); | ||
resetButton.css('display', 'inline-block'); // Show the reset button | resetButton.css('display', 'inline-block'); // Show the reset button | ||
} else { | } else { | ||
Line 533: | Line 533: | ||
// The filter reset code has been removed to keep the filters active | // The filter reset code has been removed to keep the filters active | ||
}); | }); | ||
$(this).text('[ FILTER ]'); | $(this).text('[FILTER]'); | ||
resetButton.css('display', 'none'); // Hide the reset button when filters are not visible | resetButton.css('display', 'none'); // Hide the reset button when filters are not visible | ||
} | } | ||
Line 701: | Line 701: | ||
// The filter reset code has been removed to keep the filters active | // The filter reset code has been removed to keep the filters active | ||
}); | }); | ||
$('.general-toggle').text('[ FILTER ]'); // Update the toggle button text | $('.general-toggle').text('[FILTER]'); // Update the toggle button text | ||
} | } | ||
}); | }); |