CoreFiles by mySites.guru
config-filters.min.js4 lines, 793 bytes, from Joomla_5.0.1-Stable-Full_Package.zip
Raw History Compare with 5.0.0
md5
6b2e5c01ce370b42f9fd303fe124d66a
sha1
2ead1777c9585f34972272bb31bc0c28f0993f50
sha256
9a4352183d92e4926468746f88d5d231519403c83045579b9b62ee3167d592ab
/**
 * @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=e=>{[].slice.call(document.querySelectorAll(`#filter-config select[data-parent="${e}"]`)).map(l=>(recursiveApplyChanges(l.dataset.id),l.value="NONE",l))},applyChanges=e=>{const t=e.currentTarget;if(t.options[t.selectedIndex].value==="NONE"){const n=[].slice.call(document.querySelectorAll(`#filter-config select[data-parent="${t.dataset.id}"]`));n.length&&window.confirm(Joomla.Text._("COM_CONFIG_TEXT_FILTERS_NOTE"))&&n.map(c=>(recursiveApplyChanges(c.dataset.id),c.value="NONE",c))}};[].slice.call(document.querySelectorAll("#filter-config select")).map(e=>e.addEventListener("change",applyChanges));

The same content is in 41 releases, Joomla 4.4.1-rc1 to 5.1.0-beta1. See them all, or every version of this file.