CoreFiles by mySites.guru
config-filters.min.js4 lines, 756 bytes, from Joomla_5.2.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 5.2.0-alpha2
md5
2cad91734e1d7bfedb008a52c5da1aba
sha1
69a55e25814e425010bc895eef14044fdbd284a5
sha256
c88c217f16516a24147c369e2191a44a5ae4285a019b7211cc6c75b294cc34af
/**
 * @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));

The same content is in 137 releases, Joomla 5.1.0-beta2 to 6.3.0-alpha1. See them all, or every version of this file.