primo commit
This commit is contained in:
4
media/com_finder/js/finder-edit.min.js
vendored
Normal file
4
media/com_finder/js/finder-edit.min.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/**
|
||||
* @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())})});
|
||||
Reference in New Issue
Block a user