diff --git a/js/varien/weee.js b/js/varien/weee.js index d5456474e8e..b7a722ddc92 100644 --- a/js/varien/weee.js +++ b/js/varien/weee.js @@ -8,18 +8,20 @@ * @category Varien * @package js * @copyright Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com) - * @copyright Copyright (c) 2022 The OpenMage Contributors (https://www.openmage.org) + * @copyright Copyright (c) 2023 The OpenMage Contributors (https://www.openmage.org) * @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ -/**************************** WEEE STUFF ********************************/ function taxToggle(details, switcher, expandedClassName) { - if ($(details).style.display == 'none') { - $(details).show(); - $(switcher).addClassName(expandedClassName); + var detailsElement = document.getElementById(details); + var switcherElement = document.getElementById(switcher); + + if (detailsElement.style.display == 'none') { + detailsElement.style.display = 'block'; + switcherElement.classList.add(expandedClassName); } else { - $(details).hide(); - $(switcher).removeClassName(expandedClassName); + detailsElement.style.display = 'none'; + switcherElement.classList.remove(expandedClassName); } }