CoreFiles by mySites.guru
tour-edit.min.js4 lines, 795 bytes, from Joomla_6.1.2-Stable-Full_Package.zip
Raw History Compare with 6.1.1
md5
318150dbd00cd5a43b571fb92573d2d2
sha1
e3e05ab2c4fb81e31ad3b7b849357cc3c9491e0a
sha256
928c365b786e88c8aead9e09c7a1d7a102936ba4a5edb14e49c6f192e35b5b1e
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */["joomla:showon-show","joomla:showon-hide"].forEach(t=>{document.addEventListener(t,()=>{document.querySelectorAll("#guidedtour-dates-form fieldset").forEach(e=>{if(e.querySelectorAll(":scope .control-group").length===0)return;e.querySelectorAll(":scope .control-group:not(.hidden)").length?e.classList.remove("hidden"):e.classList.add("hidden")}),document.querySelectorAll("#guidedtour-dates-form joomla-tab-element").forEach(e=>{const o=document.querySelector(`button[aria-controls="${e.id}"]`);o&&(e.querySelectorAll(":scope .control-group:not(.hidden)").length?o.removeAttribute("hidden"):o.setAttribute("hidden","hidden"))})})});

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