From 50d0ea25fae334467460e167cf00d9615d20ff93 Mon Sep 17 00:00:00 2001 From: rdrew Date: Fri, 10 Oct 2025 11:48:47 -0300 Subject: [PATCH] facet hide --- js/mobile_facets.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/mobile_facets.js b/js/mobile_facets.js index 059ce74..f73bbc2 100755 --- a/js/mobile_facets.js +++ b/js/mobile_facets.js @@ -1,6 +1,5 @@ (function (Drupal) { // Select the parent container const sidebar = document.querySelector('.region--sidebar'); // Check if the element exists - const buttonText = ' Search the Collection' if (sidebar) { // Get all direct children const children = Array.from(sidebar.children);// Create the wrapper div @@ -23,8 +22,7 @@ // Create the button element const button = document.createElement('button'); button.id = 'toggle-facets'; - //button.textContent = 'Search the Collection'; - button.innerHtml = buttonText; + button.textContent = 'Search the Collection'; // Insert the button before the wrapper sidebar.insertBefore(button, wrapper);