Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla5/media/com_finder/js/ |
| [Home] [System Details] [Kill Me] |
/**
* @copyright (C) 2018 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/Joomla=window.Joomla||{},document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".filter-toggle-all").forEach(e=>{e.addEventListener("click",()=>document.querySelectorAll(".filter-node").forEach(t=>t.click()))}),document.querySelectorAll(".filter-node").forEach(()=>{const
e=document.getElementById("jform_map_count");e&&(e.value=document.querySelectorAll('input[type="checkbox"]:checked').length)}),document.querySelectorAll(".js-filter").forEach(e=>{e.addEventListener("click",t=>{const
o=t.currentTarget;document.querySelectorAll(`.${o.dataset.id}`).forEach(l=>l.click())})});const
c=document.getElementById("expandAccordion");c&&c.addEventListener("click",e=>{e.preventDefault();let
t;e.target.innerText===Joomla.Text._("COM_FINDER_FILTER_SHOW_ALL")?(e.target.innerText=Joomla.Text._("COM_FINDER_FILTER_HIDE_ALL"),t=document.querySelectorAll(".accordion-button.collapsed")):(e.target.innerText=Joomla.Text._("COM_FINDER_FILTER_SHOW_ALL"),t=document.querySelectorAll(".accordion-button:not(.collapsed)")),t&&t.forEach(o=>o.click())})});