Current Path :
/
home
/
develito
/
.trash
/
v6
/
media
/
com_config
/
js
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/.trash/v6/media/com_config/js/config-filters.min.js
/** * @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */const recursiveApplyChanges=t=>{document.querySelectorAll(`#filter-config select[data-parent="${t}"]`).forEach(e=>{recursiveApplyChanges(e.dataset.id),e.value="NONE"})},applyChanges=t=>{const e=t.currentTarget;if(e.options[e.selectedIndex].value==="NONE"){const r=document.querySelectorAll(`#filter-config select[data-parent="${e.dataset.id}"]`);r.length&&window.confirm(Joomla.Text._("COM_CONFIG_TEXT_FILTERS_NOTE"))&&r.forEach(n=>{recursiveApplyChanges(n.dataset.id),n.value="NONE"})}};document.querySelectorAll("#filter-config select").forEach(t=>t.addEventListener("change",applyChanges));